function disable_breadcrumbs_node_view in Disable breadcrumbs 7
Implements hook_node_view().
File
- ./
disable_breadcrumbs.module, line 153 - Disable breadcrumbs
Code
function disable_breadcrumbs_node_view($node, $view_mode) {
$disable_breadcrumbs_all = variable_get('disable_breadcrumbs_all', NULL);
// Return if all breadcrumbs are disabled.
if ($disable_breadcrumbs_all) {
return;
}
// Only disable breadcrumb if disable_breadcrumb has been set to 1 in hook_node_load().
if (!empty($node->disable_breadcrumb) && $view_mode == 'full') {
_disable_breadcrumbs_disable();
}
}