You are here

function menu_load in Drupal 7

Same name and namespace in other branches
  1. 6 modules/menu/menu.module \menu_load()

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.

2 calls to menu_load()
MenuTestCase::addCustomMenu in modules/menu/menu.test
Add custom menu.
MenuTestCase::deleteCustomMenu in modules/menu/menu.test
Delete custom menu.

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