From 797bfb923df75fda9349aa6d10af73f686c8883f Mon Sep 17 00:00:00 2001 From: Alan Stanley Date: Thu, 29 Aug 2013 14:00:27 -0300 Subject: [PATCH] consolidated looping logic --- includes/manage_deleted_objects.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/manage_deleted_objects.inc b/includes/manage_deleted_objects.inc index f453a730..fa3647e3 100644 --- a/includes/manage_deleted_objects.inc +++ b/includes/manage_deleted_objects.inc @@ -45,9 +45,6 @@ function islandora_deleted_objects_prep_form($form, $form_state, $serialized_cho if (!in_array($option['pid'], $elegible_contentmodels)) { unset($table_element['#options'][$option['pid']]); } - } - - foreach ($table_element['#options'] as $option) { if (array_key_exists($option['pid'], $chosen_contentmodels)) { $table_element['#default_value'][$option['pid']] = TRUE; }