function timefield_is_empty_value in Timefield 7
Helper function to determine if a field is empty
2 calls to timefield_is_empty_value()
- timefield_field_is_empty in ./
timefield.module - Implements hook_field_is_empty().
- timefield_field_validate in ./
timefield.module - Implements hook_field_validate().
File
- ./
timefield.module, line 679 - Defines a Field API field for time
Code
function timefield_is_empty_value($value) {
return !isset($value) || empty($value) && $value !== 0 && $value !== '0';
}