diff --git a/includes/breadcrumb.inc b/includes/breadcrumb.inc index 872eb70a..05ab1bac 100644 --- a/includes/breadcrumb.inc +++ b/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; } diff --git a/islandora.api.php b/islandora.api.php index 7fe54828..2cdf5d73 100644 --- a/islandora.api.php +++ b/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) { + +}