Skip navigation
Help

menu_get_names

6 menu.inc menu_get_names($reset = FALSE)
7 menu.inc menu_get_names()

Build a list of named menus.

Related topics

1 call to menu_get_names()

1 string reference to 'menu_get_names'

File

drupal/includes/menu.inc, line 1697
API for the Drupal menu system.

Code

function menu_get_names() {
  $names = &drupal_static(__FUNCTION__);

  if (empty($names)) {
    $names = db_select('menu_links')
      ->distinct()
      ->fields('menu_links', array('menu_name'))
      ->orderBy('menu_name')
      ->execute()->fetchCol();
  }
  return $names;
}