You are here

function civicrm_entity_profile_field_is_empty in CiviCRM Entity 7.2

Implements hook_field_is_empty().

Parameters

$item:

$field:

Return value

bool

File

modules/civicrm_entity_profile/civicrm_entity_profile.module, line 228

Code

function civicrm_entity_profile_field_is_empty($item, $field) {
  if (empty($item['uf_group_id'])) {
    if (empty($item['target_id'])) {
      return TRUE;
    }
  }
  return FALSE;
}