You are here

function calendar_get_formats in Calendar 5.2

Same name and namespace in other branches
  1. 5 calendar.module \calendar_get_formats()

Helper function to find the display formats for each part of this view.

4 calls to calendar_get_formats()
calendar_build_week in ./calendar.inc
Build one week row.
theme_calendar_links in ./calendar.theme
Links at the top of the calendar.
theme_calendar_views_calendar in ./calendar.theme
Calendar Views plugin theme, overrides default views theme to create a calendar view.
_calendar_views_query_alter in ./calendar.inc
@file All the code used while processing a calendar is stored in this file and is included only when needed.

File

./calendar.module, line 735
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',
  ));
}