diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/module.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/module.inc b/includes/module.inc index ae132fa5b..dcaf2f567 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -589,8 +589,8 @@ function module_implements($hook, $sort = FALSE, $reset = FALSE) { $implementations[$hook] = array(); $list = module_list(FALSE, FALSE, $sort); foreach ($list as $module) { - $include_file = FALSE; - if (module_hook($module, $hook) || (isset($hook_info[$hook]['group']) && $include_file = module_load_include('inc', $module, $module . '.' . $hook_info[$hook]['group']) && module_hook($module, $hook))) { + $include_file = isset($hook_info[$hook]['group']) && module_load_include('inc', $module, $module . '.' . $hook_info[$hook]['group']); + if (module_hook($module, $hook)) { $implementations[$hook][$module] = $include_file ? $hook_info[$hook]['group'] : FALSE; // We added something to the cache, so write it when we are done. $implementations['#write_cache'] = TRUE; |