function template_preprocess_opening_hours_week in Opening hours 6
Same name and namespace in other branches
- 7 opening_hours.module \template_preprocess_opening_hours_week()
Preprocess variables for the week template.
File
- ./
opening_hours.module, line 498 - Opening hours module.
Code
function template_preprocess_opening_hours_week(&$vars) {
static $once;
// Only add JavaScript and templates the first time this is run on a page.
if (!$once) {
drupal_add_css(drupal_get_path('module', 'opening_hours') . '/css/opening_hours.theme.css');
opening_hours_add_js();
// Add our client-side templates to the page.
$vars['preface'] = theme('opening_hours_presentation');
$once = TRUE;
}
}