8.5.x menu.inc menu_list_system_menus()
8.0.x menu.inc menu_list_system_menus()
8.1.x menu.inc menu_list_system_menus()
8.2.x menu.inc menu_list_system_menus()
8.3.x menu.inc menu_list_system_menus()
8.4.x menu.inc menu_list_system_menus()
8.6.x menu.inc menu_list_system_menus()
6.x menu.inc menu_list_system_menus()
7.x menu.inc menu_list_system_menus()

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

Related topics

1 call 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.

File

core/includes/menu.inc, line 84
API for the Drupal menu system.

Code

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