function office_hours_field_is_empty in Office Hours 7
Implements hook_field_is_empty().
1 call to office_hours_field_is_empty()
- office_hours_instance_is_empty in includes/
office_hours.field.inc - Checks if an instance of the office hours field type is empty.
File
- includes/
office_hours.field.inc, line 252 - Implements the office_hours Field.
Code
function office_hours_field_is_empty($item, $field) {
if ($item['starthours'] == '' || $item['endhours'] == '' || !isset($item['day']) || $item['day'] === '') {
return TRUE;
}
return FALSE;
}