function panels_breadcrumbs_ctools_render_alter in Panels Breadcrumbs 7.2
Same name and namespace in other branches
- 7 panels_breadcrumbs.module \panels_breadcrumbs_ctools_render_alter()
Implements hook_ctools_render_alter().
When a Page Manager page is rendered, build the breadcrumb if it exists.
File
- ./
panels_breadcrumbs.module, line 63 - Main file for panels breadcrumbs module.
Code
function panels_breadcrumbs_ctools_render_alter($info, $page, $context) {
$handler = $context['handler'];
$contexts = ctools_context_handler_get_handler_contexts($context['contexts'], $handler);
if (isset($handler->conf['panels_breadcrumbs_state']) && $handler->conf['panels_breadcrumbs_state']) {
panels_breadcrumbs_build_breadcrumb($handler->conf, $contexts, TRUE);
}
}