ISLANDORA-1985 Add a permission to access inactive or deleted objects. (#677)
* ISLANDORA-1985 Add a permission to access inactive or deleted objects.
* Update hook grants permission to whoever can currently view objects.
* Add warning message for user locking themselves out.
* Coding standards.
* More coding standards.
* Use t() function in confirmation form.
* Change update hook to not update permissions; warn only.
* Code sniffer, you so picky.
* Use a toggle.
* Simplify logic for clarity.
pull/636/merge
Rosemary Le Faive7 years agocommitted byDiego Pino Navarro
* Confirmation form for object properties admin form.
*
* @param array $form_state
* The Drupal form state.
*/
function islandora_object_properties_confirm_form(array &$form_state) {
$desc = t('You do not have permission to view Inactive or Deleted objects, so you will no longer be able to view or manage this object. Are you sure?');