function safeword_field_is_empty in Safeword 8
Same name and namespace in other branches
- 7 safeword.module \safeword_field_is_empty()
Implements hook_field_is_empty().
File
- ./
safeword.module, line 170 - Provides a FieldAPI field type, widget, and several formatters for a combined human readable/machine name pair of values. Possible uses include automatic generation of editable pathauto segments, handy Views argument values, and impressing friends.
Code
function safeword_field_is_empty($item, $field) {
return empty($item['human']) && empty($item['machine']);
}