function calendar_is_calendar in Calendar 5.2
Same name and namespace in other branches
- 5 calendar.module \calendar_is_calendar()
Function to test whether this is a view that uses the calendar plugin theme.
4 calls to calendar_is_calendar()
- calendar_views_post_view in ./
calendar.module - Implementation of hook_views_post_view().
- calendar_views_pre_view in ./
calendar.module - Implementation of hook_views_pre_view()
- theme_calendar_views_calendar in ./
calendar.theme - Calendar Views plugin theme, overrides default views theme to create a calendar view.
- theme_calendar_views_summary in ./
calendar.theme - Calendar summary display.
File
- ./
calendar.module, line 661 - Adds calendar filtering and displays to Views.
Code
function calendar_is_calendar($view) {
$calendar_info = calendar_info();
if (!empty($calendar_info) && !empty($calendar_info[$view->name])) {
return $calendar_info[$view->name][$view->build_type];
}
return FALSE;
}