You are here

function office_hours_content_is_empty in Office Hours 6

Same name and namespace in other branches
  1. 6.2 office_hours.module \office_hours_content_is_empty()

Implementation of hook_content_is_empty().

File

./office_hours.module, line 77
Creates a field and widget for inserting working or office hours per day

Code

function office_hours_content_is_empty($item, $field) {
  if ($item['starthours'] == '' || $item['endhours'] == '' || !isset($item['day'])) {
    return TRUE;
  }
  return FALSE;
}