You are here

function mail_edit_menu_breadcrumb_alter in Mail Editor 7

Implements hook_menu_breadcrumb_alter().

Fixes the breadcrumb for the template edit page.

Parameters

$active_trail:

$item:

File

./mail_edit.module, line 225
Mail Editor module.

Code

function mail_edit_menu_breadcrumb_alter(&$active_trail, $item) {
  if (isset($item['path']) && $item['path'] == 'admin/config/system/mail-edit/%/%') {
    $active_trail = array(
      $active_trail[0],
    );
    foreach ($item['map'] as $i) {
      $path = !isset($path) ? $i : $path . '/' . $i;
      $active_trail[] = menu_get_item($path);
    }
    array_pop($active_trail);
    array_pop($active_trail);
  }
}