|
|
@ -60,9 +60,14 @@ function islandora_do_derivatives(AbstractObject $object, array $options) { |
|
|
|
require_once $hook['file']; |
|
|
|
require_once $hook['file']; |
|
|
|
} |
|
|
|
} |
|
|
|
foreach ($hook['function'] as $function) { |
|
|
|
foreach ($hook['function'] as $function) { |
|
|
|
$logging = call_user_func($function, $object, $options['force']); |
|
|
|
if (function_exists($function)) { |
|
|
|
if (!empty($logging)) { |
|
|
|
$logging = call_user_func($function, $object, $options['force']); |
|
|
|
$results[] = $logging; |
|
|
|
if (!empty($logging)) { |
|
|
|
|
|
|
|
$results[] = $logging; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
watchdog('islandora', 'Unable to call derivative function @function as it was not found!', array('@function' => $function), WATCHDOG_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|