Posted By

berkes on 11/28/06


Tagged

menu drupal


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
kellyharding
skywalker


Get admin menuID


 / Published in: PHP
 

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

menugetitem does not return a menu ID.

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

Report this snippet  

You need to login to post a comment.