Return to Snippet

Revision: 1953
at November 28, 2006 11:35 by berkes


Initial Code
function sympal_theme_module_get_admin_mid() {
  static $menu; 
 
  if (!isset($menu) || $reset) {
    $menu = menu_get_menu();
  }
  return $menu['path index']['admin'];
}

Initial URL
http://api.drupal.org/api/HEAD/function/menu_get_item

Initial Description
menu_get_item does not return a menu ID.

Initial Title
Get admin menuID

Initial Tags
drupal

Initial Language
PHP