You are here

function ultimenu_get_menus in Ultimenu 7

Get all available menus, excluding some admin menus.

2 calls to ultimenu_get_menus()
ultimenu_admin_settings in includes/ultimenu.admin.inc
Menu callback for 'admin/structure/ultimenu'.
ultimenu_get_blocks in includes/ultimenu.utilities.inc
Collects enabled Ultimenu block items.

File

includes/ultimenu.utilities.inc, line 234
Misc functions that hardly change.

Code

function ultimenu_get_menus() {
  $menus =& drupal_static(__FUNCTION__);
  if (!isset($menus)) {
    $available_menus = menu_get_menus();
    $exclude_menus = array(
      'devel' => t('Development'),
      'management' => t('Management'),
      'navigation' => t('Navigation'),
    );
    $menus = array_diff_key($available_menus, $exclude_menus);
  }
  return $menus;
}