function path_breadcrumbs_panels_pane_content_alter in Path Breadcrumbs 7.3
Implements hook_panels_pane_content_alter().
Override default 'page_breadcrumb' content.
File
- ./
path_breadcrumbs.module, line 888
Code
function path_breadcrumbs_panels_pane_content_alter(&$content, $pane, $args, $context, $renderer, $display) {
if (empty($content)) {
return;
}
if ($content->type == 'page_breadcrumb') {
// Init Path Breadcrumbs early.
path_breadcrumbs_set_breadcrumb();
$content->content = theme('breadcrumb', array(
'breadcrumb' => drupal_get_breadcrumb(),
));
}
}