Commit 17a2c2f3 authored by webchick's avatar webchick

#897768 by pwolanin: Fixed Breadcrumb can show only one trail item, making it look like an action.

parent d073fa2a
......@@ -344,17 +344,12 @@ function template_process_overlay(&$variables) {
/**
* Implements hook_preprocess_page().
*
* Display breadcrumbs correctly inside the overlay.
* Hide tabs inside the overlay.
*
* @see overlay_get_mode()
*/
function overlay_preprocess_page(&$variables) {
if (overlay_get_mode() == 'child') {
// Remove 'Home' from the breadcrumbs.
$overlay_breadcrumb = drupal_get_breadcrumb();
array_shift($overlay_breadcrumb);
$variables['breadcrumb'] = theme('breadcrumb', array('breadcrumb' => $overlay_breadcrumb));
unset($variables['tabs'][0]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment