You are here

function geolocation_get_geolocation_fields in Geolocation Field 7

1 call to geolocation_get_geolocation_fields()
geolocation_update_7101 in ./geolocation.install
Increase precision of Geolocation Field data columns: lat_sin, lat_cos, lng_rad

File

./geolocation.install, line 109
Install/Update/Uninstall functions for geolocation_field module

Code

function geolocation_get_geolocation_fields() {
  $types = array_keys(geolocation_field_info());

  // returns one value in our case
  $fields = array();
  foreach (field_info_fields() as $field) {
    if (in_array($field['type'], $types)) {
      $fields[] = $field;
    }
  }
  return $fields;
}