From 6d9fb62fcfdac43ef5ec32ba3fc288dafe5b79b6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 22 Apr 2010 18:56:53 +0000 Subject: - Patch #731606 by fago: module_implements() fails to find include. --- includes/module.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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; -- cgit v1.2.3