You are here

function registration_field_is_empty in Entity Registration 7

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

Implements hook_field_is_empty().

File

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

Code

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