|
|
|
@ -334,12 +334,12 @@ function hook_cmodel_pid_dsid_islandora_datastream_ingested(AbstractObject $obje
|
|
|
|
|
* @param AbstractObject $object |
|
|
|
|
* The object the datastream belongs to. |
|
|
|
|
* @param AbstractDatastream $datastream |
|
|
|
|
* The datastream that was ingested. |
|
|
|
|
* |
|
|
|
|
* @todo We should also include what changes were made in a additional |
|
|
|
|
* parameter. |
|
|
|
|
* The datastream that was modified. |
|
|
|
|
* @param array $params |
|
|
|
|
* The parameters from FedoraDatastream::modifyDatastream() used to modify the |
|
|
|
|
* datastream. |
|
|
|
|
*/ |
|
|
|
|
function hook_islandora_datastream_modified(AbstractObject $object, AbstractDatastream $datastream) { |
|
|
|
|
function hook_islandora_datastream_modified(AbstractObject $object, AbstractDatastream $datastream, array $params) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -348,7 +348,7 @@ function hook_islandora_datastream_modified(AbstractObject $object, AbstractData
|
|
|
|
|
* |
|
|
|
|
* @see hook_islandora_datastream_modified() |
|
|
|
|
*/ |
|
|
|
|
function hook_cmodel_pid_islandora_datastream_modified(AbstractObject $object, AbstractDatastream $datastream) { |
|
|
|
|
function hook_cmodel_pid_islandora_datastream_modified(AbstractObject $object, AbstractDatastream $datastream, array $params) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -660,6 +660,10 @@ function hook_cmodel_pid_islandora_overview_object_alter(AbstractObject &$object
|
|
|
|
|
* |
|
|
|
|
* @param AbstractObject $object |
|
|
|
|
* Optional object to which derivatives will be added |
|
|
|
|
* @param array $ds_modified_params |
|
|
|
|
* An array that will contain the properties changed on the datastream if |
|
|
|
|
* derivatives were triggered from a datastream_modified hook. Can be |
|
|
|
|
* populated manually, but likely empty otherwise. |
|
|
|
|
* |
|
|
|
|
* @return array |
|
|
|
|
* An array containing an entry for each derivative to be created. Each entry |
|
|
|
@ -693,7 +697,7 @@ function hook_cmodel_pid_islandora_overview_object_alter(AbstractObject &$object
|
|
|
|
|
* - file: A string denoting the path to the file where the function |
|
|
|
|
* is being called from. |
|
|
|
|
*/ |
|
|
|
|
function hook_islandora_derivative(AbstractObject $object = NULL) { |
|
|
|
|
function hook_islandora_derivative(AbstractObject $object = NULL, $ds_modified_params = array()) { |
|
|
|
|
$derivatives[] = array( |
|
|
|
|
'source_dsid' => 'OBJ', |
|
|
|
|
'destination_dsid' => 'DERIV', |
|
|
|
@ -736,7 +740,7 @@ function hook_cmodel_pid_islandora_derivative() {
|
|
|
|
|
/** |
|
|
|
|
* Allows for the altering of defined derivative functions. |
|
|
|
|
*/ |
|
|
|
|
function hook_islandora_derivative_alter(&$derivatives, AbstractObject $object) { |
|
|
|
|
function hook_islandora_derivative_alter(&$derivatives, AbstractObject $object, $ds_modified_params = array()) { |
|
|
|
|
foreach ($derivatives as $key => $derivative) { |
|
|
|
|
if ($derivative['destination_dsid'] == 'TN') { |
|
|
|
|
unset($derivatives[$key]); |
|
|
|
|