You are here

function hook_hansel_menus_alter in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 hansel.hooks.inc \hook_hansel_menus_alter()

Alter the menu list used for activating the menu item based on the breadcrumbs.

Parameters

array $menus :

2 invocations of hook_hansel_menus_alter()
menu_hansel_get_parent in ./hansel.actions.inc
Implements hook_hansel_get_parent().
_hansel_activate_menu in ./hansel.module
Set the active menu item to the item corresponding the breadcrumbs.

File

./hansel.hooks.inc, line 91
Hansel hook documentation

Code

function hook_hansel_menus_alter(&$menus) {
  $menus = array(
    'secondary-links',
    'primary-links',
  );
}