You are here

function views_rss_views_post_view in Views (for Drupal 7) 5

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

File

./views_rss.module, line 54

Code

function views_rss_views_post_view($view, $items, $output) {
  foreach ($view->argument as $id => $argument) {
    if ($argument['type'] == 'rss_feed') {
      $feed = $id;
      break;
    }
  }
  if ($feed !== NULL) {
    return views_rss_views_feed_argument('post_view', $view, 'rss_feed');
  }
}