You are here

function registration_field_is_empty in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 includes/registration.field.inc \registration_field_is_empty()
  2. 7 includes/registration.field.inc \registration_field_is_empty()

Implements hook_field_is_empty().

File

includes/registration.field.inc, line 110
Field hooks.

Code

function registration_field_is_empty($item, $field) {
  if (empty($item['registration_type']) && (string) $item['registration_type'] !== '') {
    return TRUE;
  }
  return FALSE;
}