You are here

function hook_responsive_menu_horizontal_tree_alter in Responsive and off-canvas menu 7.3

Same name and namespace in other branches
  1. 8.3 responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()
  2. 8.2 responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()
  3. 7.2 responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()
  4. 4.4.x responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()
  5. 4.0.x responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()
  6. 4.1.x responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()
  7. 4.3.x responsive_menu.api.php \hook_responsive_menu_horizontal_tree_alter()

Alter the horizontal menu tree.

Parameters

array $tree: The build menu tree to be altered.

1 invocation of hook_responsive_menu_horizontal_tree_alter()
responsive_menu_block_view in ./responsive_menu.module
Implements hook_block_view().

File

./responsive_menu.api.php, line 55
Responsive menu module APIs.

Code

function hook_responsive_menu_horizontal_tree_alter(&$tree) {

  // Modify the horizontal menu tree and change the title of the first item.
  $first = key($tree);
  $tree[$first]['link']['title'] = 'First';
}