function menu_list_system_menus

Same name and namespace in other branches
  1. 9 core/includes/menu.inc \menu_list_system_menus()
  2. 7.x includes/menu.inc \menu_list_system_menus()

Returns an array containing the names of system-defined (default) menus.

Related topics

2 calls to menu_list_system_menus()
menu_ui_get_menus in core/modules/menu_ui/menu_ui.module
Return an associative array of the custom menus names.
WizardPluginBase::buildForm in core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
Form callback to build other elements in the "show" form.

File

core/includes/menu.inc, line 84

Code

function menu_list_system_menus() {
  return [
    'tools' => 'Tools',
    'admin' => 'Administration',
    'account' => 'User account menu',
    'main' => 'Main navigation',
    'footer' => 'Footer menu',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.