function calendar_get_formats in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.module \calendar_get_formats()
Helper function to find the display formats for each part of this view.
1 call to calendar_get_formats()
- theme_calendar_view_calendar in ./
calendar.theme - Calendar Views plugin theme, overrides default views theme to create a calendar view.
File
- ./
calendar.module, line 1305 - Adds calendar filtering and displays to Views.
Code
function calendar_get_formats($view) {
return variable_get('calendar_display_format_' . $view->name, array(
'year' => 'calendar',
'month' => 'calendar',
'week' => 'calendar',
'day' => 'calendar',
'block' => 'calendar',
));
}