You are here

function menu_set_active_menu_name in Drupal 6

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 modules/book/book.module
Implementation of hook_nodeapi().
menu_get_active_menu_name in includes/menu.inc
Get the active menu for the current page - determines the active trail.

File

includes/menu.inc, line 1475
API for the Drupal menu system.

Code

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;
}