function theme_calendar_views_summary in Calendar 5.2
Calendar summary display.
Intercept arguments before calendar and return their summary view, Otherwise return calendar view.
File
- ./
calendar.theme, line 13
Code
function theme_calendar_views_summary(&$view, $type, $level, &$items, $args) {
$summary = !empty($items) && array_key_exists('num_nodes', $items[0]);
if ($summary || !calendar_is_calendar($view) || !calendar_is_calendar_arg($view)) {
return theme('views_summary', $view, $type, $level, $items, $args);
}
else {
return theme('calendar_view_calendar', $view, $items, $type);
}
}