function geofield_return_latlon in Geofield 7.2
Same name and namespace in other branches
- 7 geofield.module \geofield_return_latlon()
Gets the a latlong property.
1 string reference to 'geofield_return_latlon'
- geofield_data_property_info in ./
geofield.schemaorg.inc - Defines info for the properties of the geofield field data structure.
File
- ./
geofield.schemaorg.inc, line 156
Code
function geofield_return_latlon($data, array $options, $name) {
if ((is_array($data) || is_object($data) && $data instanceof ArrayAccess) && !is_null($data['lat']) && !is_null($data['lon'])) {
return $data['lat'] . ',' . $data['lon'];
}
return NULL;
}