Issue #2163625 by StephaneQ: Fix incorrect method reference in comment in ModuleHandler

8.0.x
Jennifer Hodgdon 2014-01-06 15:17:47 -08:00
parent d9227efb35
commit 36adc62b7e
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class ModuleHandler implements ModuleHandlerInterface {
$hook_info = $this->getHookInfo();
foreach ($this->moduleList as $module => $filename) {
$include_file = isset($hook_info[$hook]['group']) && $this->loadInclude($module, 'inc', $module . '.' . $hook_info[$hook]['group']);
// Since $this->hookImplements() may needlessly try to load the include
// Since $this->implementsHook() may needlessly try to load the include
// file again, function_exists() is used directly here.
if (function_exists($module . '_' . $hook)) {
$this->implementations[$hook][$module] = $include_file ? $hook_info[$hook]['group'] : FALSE;