function menu_breadcrumb_menu_breadcrumb_alter in Menu Breadcrumb 7
Implements hook_menu_breadcrumb_alter().
Alter links in the active trail before it is rendered as the breadcrumb.
File
- ./
menu_breadcrumb.module, line 304 - The main file for the menu_breadcrumb module.
Code
function menu_breadcrumb_menu_breadcrumb_alter(&$active_trail, $item) {
// Removes "Home" link to the front page, in case you already have one.
if (variable_get('menu_breadcrumb_remove_home_link', FALSE) && $active_trail[0]['href'] === '<front>') {
array_shift($active_trail);
}
}