You are here

function office_hours_theme in Office Hours 7

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

Implements hook_theme().

File

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

Code

function office_hours_theme($existing, $type, $theme, $path) {
  $base = array(
    'render element' => 'element',
    'file' => 'includes/office_hours.theme.inc',
    'path' => "{$path}",
  );
  $themes = array(
    // Formatter theming functions.
    'office_hours_field_formatter_default' => $base,
    'office_hours_time_range' => $base + array(),
    // Widget theming functions.
    'office_hours_week' => $base + array(),
    'office_hours_block' => $base + array(),
    'office_hours_select' => $base + array(),
  );
  return $themes;
}