You are here

function advpoll_field_field_is_empty in Advanced Poll 7

Same name and namespace in other branches
  1. 7.3 advpoll_field/advpoll_field.module \advpoll_field_field_is_empty()
  2. 7.2 advpoll_field/advpoll_field.module \advpoll_field_field_is_empty()

Implements hook_field_is_empty().

File

advpoll_field/advpoll_field.module, line 26
Provides a FieldAPI field type for presenting an Advanced Poll choice field with a Boolean checkbox to indicate write-in status.

Code

function advpoll_field_field_is_empty($item, $field) {
  return empty($item['choice']);
}