function addressfield_field_is_empty in Address Field 7
Implements hook_field_is_empty().
File
- ./
addressfield.module, line 458 - Defines a field for attaching country-specific addresses to entities.
Code
function addressfield_field_is_empty($item, $field) {
// Every address field must have at least a country value or it is considered
// empty, even if it has name information.
return empty($item['country']);
}