You are here

function path_breadcrumbs_set_breadcrumb in Path Breadcrumbs 7.3

Init Path Breadcrumbs.

2 calls to path_breadcrumbs_set_breadcrumb()
path_breadcrumbs_page_alter in ./path_breadcrumbs.module
Implements hook_page_alter().
path_breadcrumbs_panels_pane_content_alter in ./path_breadcrumbs.module
Implements hook_panels_pane_content_alter().

File

./path_breadcrumbs.module, line 42

Code

function path_breadcrumbs_set_breadcrumb($path = NULL) {
  if (!isset($path)) {
    $path = current_path();
  }

  // See if current page has path breadcrumbs.
  $path_breadcrumbs_data = path_breadcrumbs_load_variant($path);

  // Set breadcrumbs for current page if it exists.
  if ($path_breadcrumbs_data && isset($path_breadcrumbs_data->build)) {
    drupal_set_breadcrumb($path_breadcrumbs_data->build);
  }
}