menu_get_active_item

Versions
4.6 – 5
menu_get_active_item()

Returns the ID of the active menu item.

Related topics

▾ 4 functions call menu_get_active_item()

menu_execute_active_handler in includes/menu.inc
Execute the handler associated with the active menu item.
menu_get_active_help in includes/menu.inc
Returns the help associated with the active menu item.
menu_get_active_nontask_item in includes/menu.inc
Returns the ID of the current menu item or, if the current item is a local task, the menu item to which this task is attached.
_menu_get_active_trail in includes/menu.inc
Returns an array with the menu items that lead to the current menu item.

Code

includes/menu.inc, line 360

<?php
function menu_get_active_item() {
  return menu_set_active_item();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.