Get admin menuID


/ Published in: PHP
Save to your folder(s)

menu_get_item does not return a menu ID.


Copy this code and paste it in your HTML
  1. function sympal_theme_module_get_admin_mid() {
  2. static $menu;
  3.  
  4. if (!isset($menu) || $reset) {
  5. $menu = menu_get_menu();
  6. }
  7. return $menu['path index']['admin'];
  8. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.