Browse Source

Merge pull request #407 from willtp87/7.x.rels-ext_undeletable

7.x.rels ext undeletable
pull/408/head
Mitch MacKenzie 11 years ago
parent
commit
a2b352a617
  1. 9
      islandora.api.php
  2. 4
      islandora.module

9
islandora.api.php

@ -394,8 +394,17 @@ function hook_islandora_viewer_info() {
/** /**
* Returns a list of datastreams that are determined to be undeletable. * Returns a list of datastreams that are determined to be undeletable.
*
* The list is used to prevent delete links from being shown.
*
* @param array $models
* An array of content models for the current object.
*
* @return array
* An array of DSIDs that shouldn't be deleted.
*/ */
function hook_islandora_undeletable_datastreams(array $models) { function hook_islandora_undeletable_datastreams(array $models) {
return array('DC', 'MODS');
} }
/** /**

4
islandora.module

@ -1237,10 +1237,10 @@ function islandora_islandora_required_objects(IslandoraTuque $connection) {
} }
/** /**
* Implements islandora_undeleteable_datastreams(). * Implements hook_islandora_undeleteable_datastreams().
*/ */
function islandora_islandora_undeletable_datastreams(array $models) { function islandora_islandora_undeletable_datastreams(array $models) {
return array('DC'); return array('DC', 'RELS-EXT');
} }
/** /**

Loading…
Cancel
Save