menu_get_names

  1. drupal
    1. 6
    2. 7
Versions
6 menu_get_names($reset = FALSE)
7 menu_get_names()

Build a list of named menus.

Related topics

Code

includes/menu.inc, line 1751

<?php
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;
}
?>