function _calendar_views_arguments in Calendar 5.2
Same name and namespace in other branches
- 5 calendar_admin.inc \_calendar_views_arguments()
Implementation of hook_views_arguments()
1 call to _calendar_views_arguments()
- calendar_views_arguments in ./
calendar.module - Implementation of hook_views_arguments()
File
- ./
calendar_admin.inc, line 595 - This file contains administrative functions used only when setting up the calendar and views_hooks() that are called infrequently and cached. No need to parse all this code the rest of the time.
Code
function _calendar_views_arguments() {
$arguments = array(
'calendar_year' => array(
'name' => t('Calendar: Year'),
'handler' => 'calendar_handler_arg_year',
'help' => t('Filter by the calendar year (YYYY).'),
),
'calendar_month' => array(
'name' => t('Calendar: Month'),
'handler' => 'calendar_handler_arg_month',
'help' => t("Filter by the calendar month (1-12). Place this argument after a 'Year' argument."),
),
'calendar_day' => array(
'name' => t('Calendar: Day'),
'handler' => 'calendar_handler_arg_day',
'help' => t("Filter by the calendar day (1-31). Place this argument after a 'Year' and a 'Month' argument."),
),
'calendar_week' => array(
'name' => t('Calendar: Week'),
'handler' => 'calendar_handler_arg_week',
'help' => t("Filter by the week number (1-52). Place this argument after a 'Year' argument and use a 'W' in front of the week number in the url."),
),
);
return $arguments;
}