diff --git a/theme/theme.inc b/theme/theme.inc index 5ae7b19..bde38a3 100644 --- a/theme/theme.inc +++ b/theme/theme.inc @@ -266,11 +266,11 @@ function template_preprocess_calendar_day(&$vars) { $group_time = NULL; $divisor = NULL; if ($display_overlap) { - if ($view->style_options['groupby_times'] == 'half') { + if ($view->date_info->style_groupby_times == 'half') { $group_time = 30; $divisor = 7.5; } - elseif ($view->style_options['groupby_times'] == 'hour') { + elseif ($view->date_info->style_groupby_times == 'hour') { $group_time = 60; $divisor = 15; } @@ -479,11 +479,11 @@ function template_preprocess_calendar_week(&$vars) { if ($display_overlap) { $group_time = NULL; $divisor = NULL; - if ($view->style_options['groupby_times'] == 'half'){ + if ($view->date_info->style_groupby_times == 'half'){ $group_time = 30; $divisor = 7.5; } - elseif ($view->style_options['groupby_times'] == 'hour'){ + elseif ($view->date_info->style_groupby_times == 'hour'){ $group_time = 60; $divisor = 15; }