summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/module.inc b/includes/module.inc
index 79b12c3d7..ae7667370 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -284,7 +284,7 @@ function module_enable($module_list) {
// Refresh the module list to include the new enabled module.
module_list(TRUE, FALSE);
// Force to regenerate the stored list of hook implementations.
- drupal_rebuild_code_registry();
+ registry_rebuild();
}
foreach ($invoke_modules as $module) {
@@ -325,7 +325,7 @@ function module_disable($module_list) {
// Refresh the module list to exclude the disabled modules.
module_list(TRUE, FALSE);
// Force to regenerate the stored list of hook implementations.
- drupal_rebuild_code_registry();
+ registry_rebuild();
}
// If there remains no more node_access module, rebuilding will be