| 6 menu.inc | menu_get_names( |
| 7 menu.inc | menu_get_names() |
Build a list of named menus.
Related topics
2 calls to menu_get_names()
1 string reference to 'menu_get_names'
File
- includes/
menu.inc, line 1772 - 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;
}
Login or register to post comments
Comments
Use menu_get_menus() instead.
This function will probably be removed from Drupal 8. See issue #784856. Use
menu_get_menus()instead.