Browse Source

reverted formatting

pull/432/head
Alan Stanley 11 years ago
parent
commit
82ffcea0c2
  1. 35
      includes/datastream.version.inc

35
includes/datastream.version.inc

@ -108,11 +108,11 @@ function islandora_delete_datastream_version_form(array $form, array &$form_stat
$form_state['datastream'] = $datastream; $form_state['datastream'] = $datastream;
$form_state['version'] = $version; $form_state['version'] = $version;
return confirm_form($form, return confirm_form($form,
t('Are you sure you want to delete version @version of the @dsid datastream?', array('@dsid' => $datastream->id, '@version' => $version)), t('Are you sure you want to delete version @version of the @dsid datastream?', array('@dsid' => $datastream->id, '@version' => $version)),
"islandora/object/{$datastream->parent->id}", "islandora/object/{$datastream->parent->id}",
t('This action cannot be undone.'), t('This action cannot be undone.'),
t('Delete'), t('Delete'),
t('Cancel') t('Cancel')
); );
} }
@ -142,15 +142,15 @@ function islandora_delete_datastream_version_form_submit(array $form, array &$fo
} }
catch (Exception $e) { catch (Exception $e) {
drupal_set_message(t('Error deleting version %v of %s datastream from object %o %e', array( drupal_set_message(t('Error deleting version %v of %s datastream from object %o %e', array(
'%v' => $version, '%v' => $version,
'%s' => $datastream_id, '%s' => $datastream_id,
'%o' => $object->label, '%o' => $object->label,
'%e' => $e->getMessage())), 'error'); '%e' => $e->getMessage())), 'error');
} }
drupal_set_message(t('%d datastream version successfully deleted from Islandora object %o', array( drupal_set_message(t('%d datastream version successfully deleted from Islandora object %o', array(
'%d' => $datastream_id, '%d' => $datastream_id,
'%o' => $object->label))); '%o' => $object->label)));
$form_state['redirect'] = "islandora/object/{$object->id}/datastream/{$datastream->id}/version"; $form_state['redirect'] = "islandora/object/{$object->id}/datastream/{$datastream->id}/version";
} }
@ -179,7 +179,12 @@ function islandora_revert_datastream_version_form(array $form, array &$form_stat
$form_state['object_id'] = $datastream->parent->id; $form_state['object_id'] = $datastream->parent->id;
$form_state['version'] = $version; $form_state['version'] = $version;
return confirm_form($form, t('Are you sure you want to revert to version @version of the @dsid datastream?', array('@dsid' => $datastream->id, '@version' => $version)), "islandora/object/{$datastream->parent->id}", "", t('Revert'), t('Cancel') return confirm_form($form,
t('Are you sure you want to revert to version @version of the @dsid datastream?', array('@dsid' => $datastream->id, '@version' => $version)),
"islandora/object/{$datastream->parent->id}",
"",
t('Revert'),
t('Cancel')
); );
} }
@ -219,9 +224,9 @@ function islandora_revert_datastream_version_form_submit(array $form, array &$fo
} }
drupal_set_message(t('%d datastream successfully reverted to version %v for Islandora object %o', array( drupal_set_message(t('%d datastream successfully reverted to version %v for Islandora object %o', array(
'%d' => $datastream_to_revert->id, '%d' => $datastream_to_revert->id,
'%v' => $version, '%v' => $version,
'%o' => $islandora_object->label))); '%o' => $islandora_object->label)));
$form_state['redirect'] = "islandora/object/{$islandora_object->id}/datastream/{$datastream_to_revert->id}/version"; $form_state['redirect'] = "islandora/object/{$islandora_object->id}/datastream/{$datastream_to_revert->id}/version";
} }

Loading…
Cancel
Save