You are here

function boolean_field_is_empty in Boolean Field 7

Implements hook_field_is_empty().

File

./boolean.module, line 163
Defines boolean field type.

Code

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