|
|
|
@ -294,13 +294,9 @@ function islandora_datastream_get_url(AbstractDatastream $datastream, $type = 'd
|
|
|
|
|
* The datastream to edit. |
|
|
|
|
*/ |
|
|
|
|
function islandora_edit_datastream(AbstractDatastream $datastream) { |
|
|
|
|
$edit_registry = module_invoke_all('islandora_edit_datastream_registry', $datastream->parent, $datastream); |
|
|
|
|
$context = array( |
|
|
|
|
'datastream_parent' => $datastream->parent, |
|
|
|
|
'datastream' => $datastream, |
|
|
|
|
'original_edit_registry' => $edit_registry, |
|
|
|
|
); |
|
|
|
|
drupal_alter(ISLANDORA_EDIT_DATASTREAM_MODIFY_REGISTRY_HOOK, $edit_registry, $context); |
|
|
|
|
module_load_include('inc', 'islandora', 'includes/utilities'); |
|
|
|
|
|
|
|
|
|
$edit_registry = islandora_build_datastream_edit_registry($datastream->parent, $datastream); |
|
|
|
|
$edit_count = count($edit_registry); |
|
|
|
|
switch ($edit_count) { |
|
|
|
|
case 0: |
|
|
|
|