function menu_set_active_menu_name
Set (or get) the active menu for the current page - determines the active trail.
Related topics
2 calls to menu_set_active_menu_name()
- book_nodeapi in drupal-6.x/
modules/ book/ book.module - Implementation of hook_nodeapi().
- menu_get_active_menu_name in drupal-6.x/
includes/ menu.inc - Get the active menu for the current page - determines the active trail.
Archivo
- drupal-6.x/
includes/ menu.inc, line 1475 - API for the Drupal menu system.
Código
function menu_set_active_menu_name($menu_name = NULL) {
static $active;
if (isset($menu_name)) {
$active = $menu_name;
}
elseif (!isset($active)) {
$active = 'navigation';
}
return $active;
}