|
|
@ -746,7 +746,7 @@ function hook_cmodel_pid_islandora_derivative() { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Allows for the altering of defined derivative functions. |
|
|
|
* Allows for the altering of defined derivative functions. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function hook_islandora_derivative_alter(&$derivatives, AbstractObject $object, $ds_modified_params = array()) { |
|
|
|
function hook_islandora_derivative_alter(&$derivatives, AbstractObject $object = NULL, $ds_modified_params = array()) { |
|
|
|
foreach ($derivatives as $key => $derivative) { |
|
|
|
foreach ($derivatives as $key => $derivative) { |
|
|
|
if ($derivative['destination_dsid'] == 'TN') { |
|
|
|
if ($derivative['destination_dsid'] == 'TN') { |
|
|
|
unset($derivatives[$key]); |
|
|
|
unset($derivatives[$key]); |
|
|
|