You are here

function hook_menu_block_get_menus in Menu Block 7.2

Same name and namespace in other branches
  1. 6.2 menu_block.api.php \hook_menu_block_get_menus()
  2. 7.3 menu_block.api.php \hook_menu_block_get_menus()

Return a list of menus to use with the menu_block module.

Return value

An array containing the menus' machine names as keys with their menu titles as values.

1 function implements hook_menu_block_get_menus()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

book_menu_block_get_menus in ./menu_block.module
Implements hook_menu_block_get_menus() on behalf of book.module.
1 invocation of hook_menu_block_get_menus()
menu_block_get_all_menus in ./menu_block.module
Returns a list of menu names implemented by all modules.

File

./menu_block.api.php, line 66
Hooks provided by the Menu Block module.

Code

function hook_menu_block_get_menus() {
  $menus = array();

  // For each menu, add the following information:
  $menus['menu_name'] = 'menu title';
  return $menus;
}