function list_field_is_empty in Drupal 7
Implements hook_field_is_empty().
File
- modules/
field/ modules/ list/ list.module, line 407 - 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;
}