menu_set_active_menu_name

Versions
6
menu_set_active_menu_name($menu_name = NULL)

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

Related topics

▾ 2 functions call 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.

Code

includes/menu.inc, line 1471

<?php
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;
}
?>
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.