API17

API17:JMenu::setDefault

From Joomla! Documentation

Joomla 11.1 JMenu::setDefault

Description

Set the default item by id and language code.


public function setDefault (
        $id
        $language=''
)
Parameter Type Default Description
$id int The menu item id.
$language string The language cod (since 1.6).
  • Returns boolean True, if succesfull
  • Defined on line 138 of libraries/joomla/application/menu.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples