Browse Source

Allow users to re-create derivatives even if only one hook is available.

pull/564/head
Nigel Banks 10 years ago
parent
commit
7df506eaaa
  1. 2
      includes/object_properties.form.inc

2
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'); module_load_include('inc', 'islandora', 'includes/derivatives');
$hooks = islandora_invoke_hook_list(ISLANDORA_DERVIATIVE_CREATION_HOOK, $object->models, array($object)); $hooks = islandora_invoke_hook_list(ISLANDORA_DERVIATIVE_CREATION_HOOK, $object->models, array($object));
$hooks = islandora_filter_derivatives($hooks, array('force' => TRUE), $object); $hooks = islandora_filter_derivatives($hooks, array('force' => TRUE), $object);
if (count($hooks) > 1) { if (count($hooks) >= 1) {
$regenerate_derivatives_access = TRUE; $regenerate_derivatives_access = TRUE;
} }
} }

Loading…
Cancel
Save