You are here

function geolocation_field_presave in Geolocation Field 7

Implements hook_field_presave().

File

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

Code

function geolocation_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
  foreach ($items as $delta => $item) {

    // Precalculate some goodness.
    $items[$delta] = _geolocation_field_precalculate_values($item);
  }
}