Set (or get) the active menu for the current page - determines the active trail.

Related topics

1 call to menu_set_active_menu_name()
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;
}