1 list.module list_field_is_empty($item, $field)

Implements hook_field_is_empty().

File

core/modules/field/modules/list/list.module, line 449
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;
}