diff --git a/includes/orphaned_objects.inc b/includes/orphaned_objects.inc
index e4a861cd..6ac54115 100644
--- a/includes/orphaned_objects.inc
+++ b/includes/orphaned_objects.inc
@@ -18,11 +18,23 @@
*/
function islandora_orphaned_objects_manage_form($form, $form_state) {
if (isset($form_state['show_confirm'])) {
+ $pids = $form_state['pids_to_delete'];
+ if (count($form_state['pids_to_delete']) == 1) {
+ $pid_paths = '' . $pids[0] . '';
+ }
+ elseif (count($form_state['pids_to_delete']) <= 10) {
+ $pid_paths = '
';
+ foreach($pids as $pid) {
+ $pid_paths = $pid_paths . '- ' . $pid . '
';
+ $pid_links[] = '' . $pid . '';
+ }
+ $pid_paths = $pid_paths . '
';
+ }
$form['confirm_message'] = array(
'#type' => 'item',
'#markup' => format_plural(count($form_state['pids_to_delete']),
- 'Are you sure you want to delete the 1 object?',
- 'Are you sure you want to delete the @count objects?'),
+ 'Are you sure you want to delete the object ' . $pid_paths . '? This action cannot be reversed.',
+ 'Are you sure you want to delete these @count objects? This action cannot be reversed.' . $pid_paths),
);
$form['confirm_submit'] = array(
'#type' => 'submit',