From 7df506eaaab9a5a342542e3f65b51c6c26bfa509 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Fri, 21 Nov 2014 19:44:36 -0500 Subject: [PATCH] Allow users to re-create derivatives even if only one hook is available. --- includes/object_properties.form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/object_properties.form.inc b/includes/object_properties.form.inc index f9c8e23b..b8fcef7e 100644 --- a/includes/object_properties.form.inc +++ b/includes/object_properties.form.inc @@ -31,7 +31,7 @@ function islandora_object_properties_form(array $form, array &$form_state, Abstr module_load_include('inc', 'islandora', 'includes/derivatives'); $hooks = islandora_invoke_hook_list(ISLANDORA_DERVIATIVE_CREATION_HOOK, $object->models, array($object)); $hooks = islandora_filter_derivatives($hooks, array('force' => TRUE), $object); - if (count($hooks) > 1) { + if (count($hooks) >= 1) { $regenerate_derivatives_access = TRUE; } }