function _gmap_views_get_lat_long_from_ids in GMap Module 5
Helper function to find actual lat and lon values from the work done in _gmap_views_find_coords_ids
1 call to _gmap_views_get_lat_long_from_ids()
- theme_views_view_gmap in ./
gmap_views.module - Display the results of a view in a Google Map.
File
- ./
gmap_views.module, line 232 - GMap Views: A Views Style plugin providing a GMap view.
Code
function _gmap_views_get_lat_long_from_ids($entry, $ids) {
// during the discovery phase, a module registered that it could turn this entry into a lat-lon array
if ($ids['module']) {
$ids['entry'] = $entry;
return module_invoke($ids['module']['module'], 'gmap_views_handle_field', 'process', $ids);
}
// standard stuff, we can handle it
return array(
'lat' => $entry->{$ids['lat']},
'lon' => $entry->{$ids['lon']},
);
}