diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-11 22:46:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-11 22:46:22 +0000 |
commit | 4d20274076d4cf4338531333fb4acb23a231e907 (patch) | |
tree | cf610400ab292e6458cccfafd8f3b9ec37766db2 /modules/system/system.admin.inc | |
parent | 11074d9120ef1e4a2d9e7a78486d2df0f1d81c32 (diff) | |
download | brdo-4d20274076d4cf4338531333fb4acb23a231e907.tar.gz brdo-4d20274076d4cf4338531333fb4acb23a231e907.tar.bz2 |
#253569 by aaron, agentrickard, and Dave Reid: Add hook_modules_X to allow modules to react when other modules are enabled, disabled, installed, or uninstalled.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 5 |
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']); |