by Darren Oh: allow module_invoke_all() to merge multiple arrays recursively

6.x
Gábor Hojtsy 2007-11-30 09:16:02 +00:00
parent bad47cbf85
commit 333a540f41
1 changed files with 1 additions and 1 deletions
includes

View File

@ -423,7 +423,7 @@ function module_invoke_all() {
$function = $module .'_'. $hook;
$result = call_user_func_array($function, $args);
if (isset($result) && is_array($result)) {
$return = array_merge($return, $result);
$return = array_merge_recursive($return, $result);
}
else if (isset($result)) {
$return[] = $result;