You are here

function field_test_field_is_empty in Drupal 7

Implements hook_field_is_empty().

File

modules/field/tests/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']);
}