function hook_responsive_menu_off_canvas_tree_alter in Responsive and off-canvas menu 7.3
Same name and namespace in other branches
- 8.3 responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
- 8.2 responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
- 7.2 responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
- 4.4.x responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
- 4.0.x responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
- 4.1.x responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
- 4.3.x responsive_menu.api.php \hook_responsive_menu_off_canvas_tree_alter()
Alter the off-canvas menu tree.
Parameters
array $tree: The build menu tree to be altered.
1 invocation of hook_responsive_menu_off_canvas_tree_alter()
- responsive_menu_page_build in ./
responsive_menu.module - Implements hook_page_build().
File
- ./
responsive_menu.api.php, line 42 - Responsive menu module APIs.
Code
function hook_responsive_menu_off_canvas_tree_alter(&$tree) {
// Modify the off-canvas mobile menu tree and change the title of the
// first item.
$first = key($tree);
$tree[$first]['link']['title'] = 'First';
}