You are here

function calendar_ical_views_post_view in Calendar 5

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

post view for our own op -- mimics the feed selector

File

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

Code

function calendar_ical_views_post_view($view, $items, $output) {
  foreach ($view->argument as $id => $argument) {
    if ($argument['type'] == 'calendar_ical') {
      $feed = $id;
      break;
    }
  }
  if ($feed !== NULL) {
    $query = NULL;
    return calendar_ical_views_feed_argument('post_view', $view, 'ical', $query);
  }
}