From 898c5534f6343b7ed36b26a29559f3e1ba7a0ef4 Mon Sep 17 00:00:00 2001 From: Brandon Weigel Date: Tue, 27 Feb 2018 16:05:48 +0000 Subject: [PATCH] Coding standards, and remove unneeded variable. --- includes/orphaned_objects.inc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/includes/orphaned_objects.inc b/includes/orphaned_objects.inc index fe6b62e3..460fc3c0 100644 --- a/includes/orphaned_objects.inc +++ b/includes/orphaned_objects.inc @@ -19,22 +19,18 @@ function islandora_manage_orphaned_objects_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) { + if (count($form_state['pids_to_delete']) <= 10) { $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 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), + 'Are you sure you want to delete this object? 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',