#59479, Install system can cause module code to run before install hook is run, patch by JonBob

4.7.x
Gerhard Killesreiter 2006-04-20 16:43:28 +00:00
parent 45785f9610
commit b9c4901d86
2 changed files with 4 additions and 2 deletions

View File

@ -1006,7 +1006,6 @@ function system_modules_submit($form_id, $edit) {
}
module_list(TRUE, FALSE);
menu_rebuild();
include './includes/install.inc';
foreach ($new_modules as $module) {
@ -1018,6 +1017,8 @@ function system_modules_submit($form_id, $edit) {
}
}
menu_rebuild();
drupal_set_message(t('The configuration options have been saved.'));
return 'admin/modules';
}

View File

@ -1006,7 +1006,6 @@ function system_modules_submit($form_id, $edit) {
}
module_list(TRUE, FALSE);
menu_rebuild();
include './includes/install.inc';
foreach ($new_modules as $module) {
@ -1018,6 +1017,8 @@ function system_modules_submit($form_id, $edit) {
}
}
menu_rebuild();
drupal_set_message(t('The configuration options have been saved.'));
return 'admin/modules';
}