You are here

function hook_path_breadcrumbs_view_alter in Path Breadcrumbs 7.3

Alter built breadcrumbs.

This hook is invoked after breadcrumbs were built or after they were loaded from cache.

Parameters

array $breadcrumbs: Alterable array of build breadcrumbs.

object $path_breadcrumbs: Unalterable object contains both processed and raw titles and paths.

array $contexts: Ctools contexts from current URL.

3 invocations of hook_path_breadcrumbs_view_alter()
path_breadcrumbs_load_variant in ./path_breadcrumbs.module
Load and build path breadcrumb variant for page url. Results are cached.
path_breadcrumbs_load_variant in ./path_breadcrumbs.module
Load and build path breadcrumb variant for page url. Results are cached.
_path_breadcrumbs_build_breadcrumbs in ./path_breadcrumbs.module
Build breadcrumbs navigation from loaded path breadcrumb variant.

File

./path_breadcrumbs.api.php, line 108
Hooks provided by Path Breadcrumbs module.

Code

function hook_path_breadcrumbs_view_alter(&$breadcrumbs, $path_breadcrumbs, $contexts) {

  // @todo Needs function body.
  if ($path_breadcrumbs->from_cache == FALSE) {

    // Do heavy work here.
  }
  else {

    // Alter cached items here.
  }
}