function gmap_module_invoke in GMap Module 5
Same name and namespace in other branches
- 6.2 gmap.module \gmap_module_invoke()
- 6 gmap.module \gmap_module_invoke()
- 7.2 gmap.module \gmap_module_invoke()
- 7 gmap.module \gmap_module_invoke()
Invokes hook_gmap() in every module.
We can't use module_invoke_all() because we pass $map by reference.
5 calls to gmap_module_invoke()
- gmap_defaults in ./
gmap.module - Get the defaults for a gmap.
- gmap_macro_builder_form in ./
gmap_macro_builder.module - Macro builder form.
- theme_gmap in ./
gmap.module - Gmap element theme hook
- _gmap_admin_settings in ./
gmap_settings_ui.inc - @file GMap settings form.
- _gmap_parse_macro in ./
gmap_parse_macro.inc
File
- ./
gmap.module, line 58 - GMap -- Routines to use the Google Maps API in Drupal.
Code
function 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;
}