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