You are here

function geofield_return_latlon in Geofield 7

Same name and namespace in other branches
  1. 7.2 geofield.schemaorg.inc \geofield_return_latlon()

Gets the a latlong property.

1 string reference to 'geofield_return_latlon'
geofield_data_property_info in ./geofield.module
Defines info for the properties of the geofield field data structure.

File

./geofield.module, line 546

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;
}