You are here

function calendar_handler_arg_month in Calendar 5

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

Custom views handler for the month argument.

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

File

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

Code

function calendar_handler_arg_month($op, &$query, $argtype, $arg = '') {
  if ($op == 'filter' && !empty($arg) && $arg != CALENDAR_EMPTY_ARG) {
    calendar_filter_month($query, $arg);
  }
  return calendar_handler_arg_type($op, $query, $argtype, $arg, 'MONTH');
}