function timefield_field_is_empty in Timefield 7
Implements hook_field_is_empty().
2 calls to timefield_field_is_empty()
- TimeFieldUnitTest::testSimpletestUnitTestExampleFunction in ./
timefield.test - Check that timefield_field_is_empty work correctly
- timefield_field_validate in ./
timefield.module - Implements hook_field_validate().
File
- ./
timefield.module, line 666 - Defines a Field API field for time
Code
function timefield_field_is_empty($item, $field) {
// Every timefield must have at least single time value or it is considered
// empty.
if (!isset($item['value'])) {
return TRUE;
}
return timefield_is_empty_value($item['value']);
}