You are here

function civicrm_entity_contact_group_assign_field_field_is_empty in CiviCRM Entity 7.2

Implements hook_field_is_empty().

Parameters

$item:

$field:

Return value

bool

File

modules/civicrm_entity_contact_group_assign_field/civicrm_entity_contact_group_assign_field.module, line 225
Provide CiviCRM Entity Contact Group Assign Field Type. Provides a widget for adding/removing a contact to a selected list of groups.

Code

function civicrm_entity_contact_group_assign_field_field_is_empty($item, $field) {
  if (empty($item['groups'])) {
    return TRUE;
  }
  return FALSE;
}