You are here

function geolocation_field_is_empty in Geolocation Field 7

Implements hook_field_is_empty().

1 call to geolocation_field_is_empty()
geolocation_field_validate in ./geolocation.module
Implements hook_field_validate().

File

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

Code

function geolocation_field_is_empty($item, $field) {
  if (empty($item['lat']) && (string) $item['lat'] !== '0' && empty($item['lng']) && (string) $item['lng'] !== '0') {
    return TRUE;
  }
}