You are here

function office_hours_theme in Office Hours 8

Same name and namespace in other branches
  1. 6.2 office_hours.module \office_hours_theme()
  2. 6 office_hours.module \office_hours_theme()
  3. 7 office_hours.module \office_hours_theme()

Implements hook_theme().

File

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

Code

function office_hours_theme() {
  $theme['office_hours'] = [
    'variables' => [
      'office_hours' => [],
      'item_separator' => '<br />',
      'slot_separator' => ', ',
      'closed_text' => NULL,
    ],
  ];
  $theme['office_hours_table'] = [
    'variables' => [
      'table' => NULL,
      'schema' => NULL,
    ],
  ];
  $theme['office_hours_status'] = [
    'variables' => [
      'is_open' => FALSE,
      'open_text' => NULL,
      'closed_text' => NULL,
    ],
  ];
  return $theme;
}