From 4d20274076d4cf4338531333fb4acb23a231e907 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 11 Oct 2008 22:46:22 +0000 Subject: #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. --- modules/system/system.admin.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/system/system.admin.inc') 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']); -- cgit v1.2.3