summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index ae11a4557..307653bda 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1083,9 +1083,8 @@ function system_modules_uninstall_submit($form, &$form_state) {
if (!empty($form['#confirmed'])) {
// Call the uninstall routine for each selected module.
- foreach (array_filter($form_state['values']['uninstall']) as $module => $value) {
- drupal_uninstall_module($module);
- }
+ $modules = array_keys($form_state['values']['uninstall']);
+ drupal_uninstall_modules($modules);
drupal_set_message(t('The selected modules have been uninstalled.'));
unset($form_state['storage']);