Skip to content
Snippets Groups Projects
Commit d84ca495 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Fix #703480, patch by dnotes: Brown paper bag fix in gmap_module_invoke: Don't...

Fix #703480, patch by dnotes: Brown paper bag fix in gmap_module_invoke: Don't nuke the return value repeatedly when cycling through hook implementers.
Fixes an issue where all the behavior flags disappear.
parent 1f18ad62
No related branches found
No related tags found
No related merge requests found
...@@ -75,9 +75,9 @@ function gmap_theme() { ...@@ -75,9 +75,9 @@ function gmap_theme() {
* We can't use module_invoke_all() because we pass $map by reference. * We can't use module_invoke_all() because we pass $map by reference.
*/ */
function gmap_module_invoke($op, &$map) { function gmap_module_invoke($op, &$map) {
$return = array();
foreach (module_implements('gmap') as $module) { foreach (module_implements('gmap') as $module) {
$function = $module . '_gmap'; $function = $module . '_gmap';
$return = array();
$result = $function($op, $map); $result = $function($op, $map);
if (isset($result) && is_array($result)) { if (isset($result) && is_array($result)) {
$return = array_merge_recursive($return, $result); $return = array_merge_recursive($return, $result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment