summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-28 10:48:51 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-28 10:48:51 +0000
commit98b84b7adbf2dfee104167e4014ecd03fb965fff (patch)
tree26cb9cae9a031dbf63659e55a5d2c6fb54411378 /includes/module.inc
parentd24e2c1384d66ceb6ba5db7dae6b36f5f3ddfd31 (diff)
downloadbrdo-98b84b7adbf2dfee104167e4014ecd03fb965fff.tar.gz
brdo-98b84b7adbf2dfee104167e4014ecd03fb965fff.tar.bz2
- Patch #661420 by justinrandell, David_Rothstein: made installation of modules much more efficient.
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/module.inc b/includes/module.inc
index ba44dc46e..e3f31a009 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -319,8 +319,8 @@ function module_enable($module_list, $disable_modules_installed_hook = FALSE) {
system_list_reset();
module_list(TRUE);
module_implements('', FALSE, TRUE);
- // Force to regenerate the stored list of hook implementations.
- registry_rebuild();
+ // Update the registry to include the new enabled module.
+ registry_update();
// Refresh the schema to include the new enabled module.
drupal_get_schema(NULL, TRUE);
@@ -383,8 +383,8 @@ function module_disable($module_list) {
// Invoke hook_modules_disabled before disabling modules,
// so we can still call module hooks to get information.
module_invoke_all('modules_disabled', $invoke_modules);
- // Force to regenerate the stored list of hook implementations.
- registry_rebuild();
+ // Update the registry to remove the newly-disabled module.
+ registry_update();
}
// If there remains no more node_access module, rebuilding will be