function template_preprocess_office_hours_display in Office Hours 6
File
- ./
office_hours.theme.inc, line 220
Code
function template_preprocess_office_hours_display(&$vars) {
$vars['starthours1'] = isset($vars['hours'][0]['strhrs']) ? $vars['hours'][0]['strhrs'] : NULL;
$vars['endhours1'] = isset($vars['hours'][0]['endhrs']) ? $vars['hours'][0]['endhrs'] : NULL;
$vars['starthours2'] = isset($vars['hours'][1]['strhrs']) ? $vars['hours'][1]['strhrs'] : NULL;
$vars['endhours2'] = isset($vars['hours'][1]['endhrs']) ? $vars['hours'][1]['endhrs'] : NULL;
$vars['additional'] = isset($vars['hours'][1]) ? TRUE : FALSE;
$vars['closed'] = isset($vars['hours'][0]['closed']) ? $vars['hours'][0]['closed'] : NULL;
}