Skip to content
Snippets Groups Projects
Commit 7a538376 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1975354 by dawehner: Fixed hook_hook_info() might be invoked even the...

Issue #1975354 by dawehner: Fixed hook_hook_info() might be invoked even the namespace hasn't been registered yet.
parent 56653079
No related branches found
No related tags found
No related merge requests found
......@@ -344,9 +344,6 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
// Flush theme info caches, since (testing) modules can implement
// hook_system_theme_info() to register additional themes.
system_list_reset();
// Refresh the list of modules that implement bootstrap hooks.
// @see bootstrap_hooks()
_system_update_bootstrap_status();
// Update the kernel to include it.
// This reboots the kernel to register the module's bundle and its
......@@ -358,6 +355,10 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
$kernel->updateModules($module_filenames, $module_filenames);
}
// Refresh the list of modules that implement bootstrap hooks.
// @see bootstrap_hooks()
_system_update_bootstrap_status();
// Refresh the schema to include it.
drupal_get_schema(NULL, TRUE);
// Update the theme registry to include it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment