function menu_get_menus

cis7 menu.module menu_get_menus($all = TRUE)
cle7 menu.module menu_get_menus($all = TRUE)
elmsmedia7 menu.module menu_get_menus($all = TRUE)
icor7 menu.module menu_get_menus($all = TRUE)
meedjum_blog7 menu.module menu_get_menus($all = TRUE)
mooc7 menu.module menu_get_menus($all = TRUE)

Return an associative array of the custom menus names.

Parameters

$all: If FALSE return only user-added menus, or if TRUE also include the menus defined by the system.

Return value

An array with the machine-readable names as the keys, and human-readable titles as the values.

30 calls to menu_get_menus()
ckeditor_link_ckeditor_link_menu_settings in sites/all/modules/ulmus/ckeditor_link/includes/ckeditor_link.menu.inc
Implementation of hook_ckeditor_link_TYPE_settings().
context_condition_menu::condition_values in sites/all/modules/ulmus/context/plugins/context_condition_menu.inc
Override of condition_values().
context_reaction_menu::options_form in sites/all/modules/ulmus/context/plugins/context_reaction_menu.inc
Provide a form element that allow the admin to chose a menu item.
devel_generate_menu_data in sites/all/modules/ulmus/devel/devel_generate/devel_generate.inc
devel_generate_menu_form in sites/all/modules/ulmus/devel/devel_generate/devel_generate.module
Generates menus using FormAPI.

... See full list

1 string reference to 'menu_get_menus'
_dhtml_menu_menus in sites/all/modules/local_contrib/dhtml_menu/dhtml_menu.admin.inc
Build a human-readable option list for all non-empty menus. Custom menus and book menus are included if the respective modules are enabled.

File

modules/menu/menu.module, line 783
Allows administrators to customize the site's navigation menus.

Code

function menu_get_menus($all = TRUE) {
  if ($custom_menus = menu_load_all()) {
    if (!$all) {
      $custom_menus = array_diff_key($custom_menus, menu_list_system_menus());
    }
    foreach ($custom_menus as $menu_name => $menu) {
      $custom_menus[$menu_name] = t($menu['title']);
    }
    asort($custom_menus);
  }
  return $custom_menus;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.