Commit 333a540f authored by Gábor Hojtsy's avatar Gábor Hojtsy

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

parent bad47cbf
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment