You are here

function calendar_handler_arg_week in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.module \calendar_handler_arg_week()

Custom views handlers for the week argument.

1 string reference to 'calendar_handler_arg_week'
_calendar_views_arguments in ./calendar_admin.inc
Implementation of hook_views_arguments()

File

./calendar.module, line 626
Adds calendar filtering and displays to Views.

Code

function calendar_handler_arg_week($op, &$query, $argtype, $arg = '') {
  if ($op == 'filter' && !empty($arg) && $arg != CALENDAR_EMPTY_ARG) {
    calendar_filter_week($query, $arg);
  }
  return calendar_handler_arg_type($op, $query, $argtype, $arg, 'WEEK');
}