You are here

function geolocation_return_latlon in Geolocation Field 7

Gets the a latlong property.

1 string reference to 'geolocation_return_latlon'
geolocation_data_property_info in ./geolocation.module
Defines info for the properties of the geolocation field data structure.

File

./geolocation.module, line 93
A geolocation field using the Field API.

Code

function geolocation_return_latlon($data, array $options, $name) {
  if (is_array($data) || is_object($data) && $data instanceof ArrayAccess) {
    return $data['lat'] . ',' . $data['lng'];
  }
  return NULL;
}