Browse Source

Merge pull request #399 from jordandukart/7.x-alter-breadcrumbs

Add alterable breadcrumbs to Islandora.
pull/396/merge
Jonathan Green 11 years ago
parent
commit
dd50626677
  1. 2
      includes/breadcrumb.inc
  2. 12
      islandora.api.php

2
includes/breadcrumb.inc

@ -27,6 +27,8 @@
function islandora_get_breadcrumbs($object) {
$breadcrumbs = islandora_get_breadcrumbs_recursive($object->id, $object->repository);
array_pop($breadcrumbs);
$context = 'islandora';
drupal_alter('islandora_breadcrumbs', $breadcrumbs, $context);
return $breadcrumbs;
}

12
islandora.api.php

@ -648,3 +648,15 @@ function hook_islandora_derivative() {
function hook_CMODEL_PID_islandora_derivative() {
}
/**
* Alters breadcrumbs used on Solr search results and within Islandora views.
*
* @param array $breadcrumbs
* Breadcrumbs array to be altered by reference. Each element is markup.
* @param string $context
* Where the alter is originating from for distinguishing.
*/
function hook_islandora_breadcrumbs_alter(&$breadcrumbs, $context) {
}

Loading…
Cancel
Save