function double_field_field_is_empty in Double Field 7
Same name and namespace in other branches
- 7.2 double_field.module \double_field_field_is_empty()
Implements hook_field_is_empty().
File
- ./
double_field.module, line 55 - Defines double text field type.
Code
function double_field_field_is_empty($item, $field) {
return $item['first'] === '' && $item['second'] === '';
}