1.20.x list.module list_field_is_empty($item, $field)

Implements hook_field_is_empty().

File

modules/field/modules/list/list.module, line 446
Defines list field types that can be used with the Options module.

Code

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