From 234fc610c70818906e43956e7536c4e7b7fe054b Mon Sep 17 00:00:00 2001 From: Jordan Dukart Date: Wed, 19 Feb 2014 20:02:24 +0000 Subject: [PATCH] Implement an alter for the overview tab. --- islandora.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/islandora.module b/islandora.module index a2f2625e..9e7809eb 100644 --- a/islandora.module +++ b/islandora.module @@ -880,7 +880,8 @@ function islandora_object_manage_access_callback($perms, $object = NULL) { function islandora_manage_overview_object(AbstractObject $object) { module_load_include('inc', 'islandora', 'includes/utilities'); $output = array(); - foreach (islandora_build_hook_list(ISLANDORA_OVERVIEW_HOOK, $object->models) as $hook) { + $hooks = islandora_build_hook_list(ISLANDORA_OVERVIEW_HOOK, $object->models); + foreach ($hooks as $hook) { $temp = module_invoke_all($hook, $object); islandora_as_renderable_array($temp); if (!empty($temp)) { @@ -892,7 +893,7 @@ function islandora_manage_overview_object(AbstractObject $object) { $output = islandora_default_islandora_manage_overview_object($object); } arsort($output); - drupal_alter(ISLANDORA_OVERVIEW_HOOK, $object, $output); + drupal_alter($hooks, $object, $output); islandora_as_renderable_array($output); return $output; }