diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php index 1063388..4cc4e9f 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php @@ -234,9 +234,9 @@ public function getHookInfo() { $this->hookInfo = array(); // We can't use $this->invokeAll() here or it would cause an infinite // loop. + // Make sure that the modules are loaded before checking. + $this->reload(); foreach ($this->moduleList as $module => $filename) { - // Make sure that the module is loaded before checking. - $this->load($module); $function = $module . '_hook_info'; if (function_exists($function)) { $result = $function();