function calendar_handler_arg_year in Calendar 5.2
Same name and namespace in other branches
- 5 calendar.module \calendar_handler_arg_year()
Custom views handler for the year argument.
1 string reference to 'calendar_handler_arg_year'
- _calendar_views_arguments in ./
calendar_admin.inc - Implementation of hook_views_arguments()
File
- ./
calendar.module, line 136 - Adds calendar filtering and displays to Views.
Code
function calendar_handler_arg_year($op, &$query, $argtype, $arg = '') {
if ($op == 'filter' && !empty($arg) && $arg != CALENDAR_EMPTY_ARG) {
calendar_filter_year($query, $arg);
}
return calendar_handler_arg_type($op, $query, $argtype, $arg, 'YEAR');
}