You are here

function choices_field_is_empty in Poll Improved 7

Implements hook_field_is_empty().

File

modules/choices/choices.module, line 35
Defines simple choices field.

Code

function choices_field_is_empty($item, $field) {
  if (!isset($item['value']) || $item['value'] === '') {
    return !isset($item['summary']) || $item['summary'] === '';
  }
  return FALSE;
}