menu_load
function menu_load
menu_load($menu_name)
Load the data for a single custom menu.
Parameters
$menu_name: The unique name of a custom menu to load.
Return value
Array defining the custom menu, or FALSE if the menu doesn't exist.
File
- modules/menu/menu.module, line 219
- Allows administrators to customize the site's navigation menus.
Code
function menu_load($menu_name) { $all_menus = menu_load_all(); return isset($all_menus[$menu_name]) ? $all_menus[$menu_name] : FALSE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!menu!menu.module/function/menu_load/7.x