You are here

function domain_entity_field_is_empty in Domain Access Entity 7

Implements of hook_field_is_empty().

File

./domain_entity.module, line 482
Defines field (e.g. domain_entity) for entities, and access query alter.

Code

function domain_entity_field_is_empty($item, $field) {
  if ($field['type'] == 'domain_entity') {
    return !isset($item['domain_id']) || $item['domain_id'] === NULL;
  }
}