function path_breadcrumbs_page_alter in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs.module \path_breadcrumbs_page_alter()
- 7 path_breadcrumbs.module \path_breadcrumbs_page_alter()
Implements hook_page_alter().
File
- ./
path_breadcrumbs.module, line 18 - Provide core functions for path breadcrumbs modue.
Code
function path_breadcrumbs_page_alter() {
// See if current page has path breadcrumbs.
$breadcrumbs = path_breadcrumbs_load_variant(current_path());
// Set breadcrumbs for current page if it exists.
if ($breadcrumbs) {
drupal_set_breadcrumb($breadcrumbs);
}
}