You are here

function legacy_gmap_module_invoke in GMap Module 7.2

Invokes hook_gmap() in every module.

We can't use module_invoke_all() because we pass $map by reference.

3 calls to legacy_gmap_module_invoke()
legacy_gmap_defaults in tests/inc/gmap_defaults.inc
Get the defaults for a gmap.
legacy__gmap_base_js in tests/inc/gmap_defaults.inc
Adds the basic js files needed for a GMap.
legacy__gmap_parse_macro in tests/inc/gmap_parse_macro.inc

File

tests/inc/gmap_defaults.inc, line 48
Contains gmap_defaults.inc

Namespace

tests\inc

Code

function legacy_gmap_module_invoke($op, &$map) {
  $return = array();
  foreach (module_implements('gmap') as $module) {
    $function = $module . '_gmap';
    $result = $function($op, $map);
    if (isset($result) && is_array($result)) {
      $return = array_merge_recursive($return, $result);
    }
    elseif (isset($result)) {
      $return[] = $result;
    }
  }
  return $return;
}