1 number.module | number_field_is_empty($item, $field) |
Implements hook_field_is_empty().
File
- core/
modules/ field/ modules/ number/ number.module, line 232 - Defines numeric field types.
Code
function number_field_is_empty($item, $field) {
if (empty($item['value']) && (string) $item['value'] !== '0') {
return TRUE;
}
return FALSE;
}