2 * Implements hook_menu_breadcrumb_alter().
4 function {{ machine_name }}_menu_breadcrumb_alter(&$active_trail, $item) {
5 // Always display a link to the current page by duplicating the last link in
6 // the active trail. This means that menu_get_active_breadcrumb() will remove
7 // the last link (for the current page), but since it is added once more here,
9 if (!drupal_is_front_page()) {
10 $end = end($active_trail);
11 if ($item['href'] == $end['href']) {
12 $active_trail[] = $end;