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