|
|
@ -28,7 +28,7 @@ function islandora_get_breadcrumbs($object) { |
|
|
|
$breadcrumbs = islandora_get_breadcrumbs_recursive($object->id, $object->repository); |
|
|
|
$breadcrumbs = islandora_get_breadcrumbs_recursive($object->id, $object->repository); |
|
|
|
array_pop($breadcrumbs); |
|
|
|
array_pop($breadcrumbs); |
|
|
|
$context = 'islandora'; |
|
|
|
$context = 'islandora'; |
|
|
|
drupal_alter('islandora_breadcrumbs', $breadcrumbs, $context); |
|
|
|
drupal_alter('islandora_breadcrumbs', $breadcrumbs, $context, $object); |
|
|
|
return $breadcrumbs; |
|
|
|
return $breadcrumbs; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -114,9 +114,7 @@ function islandora_get_breadcrumbs_recursive($pid, FedoraRepository $repository, |
|
|
|
// render the last two links and break (on the next pass). |
|
|
|
// render the last two links and break (on the next pass). |
|
|
|
return array_merge( |
|
|
|
return array_merge( |
|
|
|
islandora_get_breadcrumbs_recursive($root, $repository, $context), |
|
|
|
islandora_get_breadcrumbs_recursive($root, $repository, $context), |
|
|
|
array( |
|
|
|
array('...') |
|
|
|
'...', |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|