|
|
@ -74,7 +74,7 @@ function islandora_datastream_to_purge(AbstractObject $object, $dsid) { |
|
|
|
$hooks = islandora_invoke_hook_list(ISLANDORA_DERIVATIVE_CREATION_HOOK, $object->models, array($object)); |
|
|
|
$hooks = islandora_invoke_hook_list(ISLANDORA_DERIVATIVE_CREATION_HOOK, $object->models, array($object)); |
|
|
|
$hook_filter = function ($hook_def) use ($dsid) { |
|
|
|
$hook_filter = function ($hook_def) use ($dsid) { |
|
|
|
return isset($hook_def['source_dsid']) && isset($hook_def['destination_dsid']) ? |
|
|
|
return isset($hook_def['source_dsid']) && isset($hook_def['destination_dsid']) ? |
|
|
|
$hook_def['source_dsid'] == $dsid : |
|
|
|
($hook_def['source_dsid'] == $dsid && $hook_def['destination_dsid'] != $dsid) : |
|
|
|
FALSE; |
|
|
|
FALSE; |
|
|
|
}; |
|
|
|
}; |
|
|
|
$hooks = array_filter($hooks, $hook_filter); |
|
|
|
$hooks = array_filter($hooks, $hook_filter); |
|
|
|