1 field_test.field.inc field_test_field_is_empty($item, $field)

Implements hook_field_is_empty().

File

core/modules/field/tests/field_test/field_test.field.inc, line 127
Defines a field type and its formatters and widgets.

Code

function field_test_field_is_empty($item, $field) {
  return empty($item['value']);
}