Browse Source

Merge pull request #404 from ajstanley/7.x

Fixed permissions.
pull/405/head
Mitch MacKenzie 11 years ago
parent
commit
7eba5bdeb6
  1. 4
      includes/object_properties.form.inc
  2. 5
      islandora.module

4
includes/object_properties.form.inc

@ -78,7 +78,9 @@ function islandora_object_properties_form(array $form, array &$form_state, Abstr
'delete' => array(
'#type' => 'submit',
'#access' => islandora_object_access(ISLANDORA_PURGE, $object),
'#value' => t('Delete'),
'#value' => t("Permanently remove '@label' from repository", array(
'@label' => truncate_utf8($object->label, 32, TRUE, TRUE))
),
'#submit' => array('islandora_object_properties_form_delete'),
'#limit_validation_errors' => array(array('pid')),
),

5
islandora.module

@ -485,6 +485,10 @@ function islandora_permission() {
'title' => t('Revert datastream history'),
'description' => t('Revert to a previous version of a datastream.'),
),
ISLANDORA_MANAGE_DELETED_OBJECTS => array(
'title' => t('Manage deleted objects'),
'description' => t('Purge or revert deleted objects.'),
),
);
}
@ -504,6 +508,7 @@ function islandora_print_object(AbstractObject $object) {
drupal_set_title($object->label);
return theme('islandora_object_print', array('object' => $object));
}
/**
* Implements hook_forms().
*/

Loading…
Cancel
Save