You are here

function views_handler_arg_ical in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar_ical.module \views_handler_arg_ical()

handler for our own ical argument; mimics the feed selector

1 string reference to 'views_handler_arg_ical'
calendar_ical_views_arguments in ./calendar_ical.module
While we support the global selector, some might want to allow ONLY ical feeds so we support a stingy selector too

File

./calendar_ical.module, line 302
Adds ical functionality to Calendar.

Code

function views_handler_arg_ical($op, &$query, $argtype, $arg = '') {
  switch ($op) {
    case 'summary':
    case 'sort':
    case 'link':
    case 'title':
      break;
    case 'filter':

      // This is a clone of the default selector, but it just invokes ours
      // rather than calling all of them.
      calendar_ical_views_feed_argument('argument', $GLOBALS['current_view'], $arg, $argtype);
  }
}