function list_field_is_empty

list_field_is_empty($item, $field)

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!modules!list!list.module/function/list_field_is_empty/7.x