Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 5

calendar.module

Version

1.20.2.114 (checked in on 2007/10/25 at 16:59:39 by karens)

Description

Adds calendar filtering and displays to Views.

Functions

Namesort iconDescription
calendar_add_itemsCall hooks in other modules to add other items to a calendar view.
calendar_argsValid calendar arguments.
calendar_arg_positionsThe positions in the view that hold calendar arguments.
calendar_blockimplementation of hook_block()
calendar_build_field_queryBuild a filtering query for an individual date field
calendar_build_filterCompile the filter query for this view.
calendar_calendar_node
calendar_calendar_node_day
calendar_calendar_node_monthImplementation of hook_calendar_node() from the calendar_get_calendar() api calendar api is expecting a function for each calendar type but all of them need the same processing, so run them through a single function instead of duplicating the...
calendar_calendar_node_week
calendar_clear_allEmpty or reset cached values.
calendar_fieldsIdentify all potential date/timestamp fields
calendar_filter_dayCallback for day filter. Build year, month, day, min, and max into query object.
calendar_filter_monthCallback for month filter. Build year, month, day, min, and max into query object.
calendar_filter_weekCallback for week filter. Build year, month, day, min, and max into query object.
calendar_filter_yearCallback for year filter. Build year, month, day, min, and max into query object.
calendar_form_alterImplementation of hook_form_alter(). Make sure calendar_info() and calendar_fields() get updated.
calendar_get_formatsHelper function to find the display formats for each part of this view.
calendar_get_nodesThe workhorse function that takes the beginning array of items and alters it to an array of calendar nodes that the theme can handle.
calendar_get_paths
calendar_handler_arg_dayCustom views handler for the day argument.
calendar_handler_arg_monthCustom views handler for the month argument.
calendar_handler_arg_typeCustom views handler for all calendar arguments.
calendar_handler_arg_weekCustom views handlers for the week argument.
calendar_handler_arg_yearCustom views handler for the year argument.
calendar_has_calendar_argsFunction to test whether any calendar args are used in this view.
calendar_helpImplementation of hook_help().
calendar_infoFunction to get information about all views that have calendar components.
calendar_is_calendarFunction to test whether this is a view that uses the calendar plugin theme.
calendar_is_calendar_argIs the current argument a calendar argument. Used to sort out whether or not to display the calendar at each point.
calendar_is_last_argIdentify the final calendar argument in this view. Needed because we can't construct a query until we know all the calendar elements. Used to tell when to add the filter to the query object.
calendar_load_calendar_apiHelper function for loading calendar_api.
calendar_load_date_apiHelper function for loading date_api.
calendar_menuImplementation of hook_menu().
calendar_navFunction to construct back and next navigation from views arguments
calendar_node_stripecreate a stripe id from a combination of the field and content types and store value for legend formula tries to create a unique id for each possible combination
calendar_offsetTODO need to identify type of timezone handling needed for each date field
calendar_og_groupsHelper function to figure out a group gid to use in blocks.
calendar_part_is_validA function to test the validity of various date parts
calendar_real_urlFigure out what the URL of the calendar view we're currently looking at is.
calendar_setup_formSetup Calendar parameters in the Setup Tab.
calendar_setup_form_submitSave Setup values.
calendar_switch_viewA block with a drop-down list that allows the user to switch between views of the current period
calendar_url_appendPick up filter and sort info from url.
calendar_views_argumentsImplementation of hook_views_arguments()
calendar_views_default_viewsImplementation of hook_views_default_views()
calendar_views_post_viewImplementation of hook_views_post_view().
calendar_views_pre_viewImplementation of hook_views_pre_view()
calendar_views_query_alterImplementation of hook_views_query() Insert filters into the query based on the current calendar view and the selected fields Used when the actual view arguments don't provide enough info to construct the query. i.e. on a view with no arguments...
calendar_views_style_pluginsImplementation of hook_views_style_plugins()
calendar_views_tabsImplementation of hook_views_tabs().
calendar_views_validateValidate a view during Views administration.
calendar_view_typesFunction to return all possible calendar views page display types.
calendar_weekHandle a lot of messy week calculations all in one place to make maintenance easier
calendar_week_rangeGet the start and end datestamp for a calendar week.
calendar_week_yearFind the calendar week number and year for a date.
_calendar_limit_nodesA function to adjust node values to slice off times before and after the selected view used for calendars that span days, months, or years since the calendar api automatically creates additional calendars for calendars that extend into another time...
_calendar_make_nodeA function to create a blank date to force a calendar display when there is no data