You are here

function views_json_views_post_view in Views Datasource 5

post view to display the render icons

File

./views_json.module, line 120
views_json.module - provides Views plugin for rendering node content as JSON.

Code

function views_json_views_post_view($view, $items, $output) {
  $links = '';
  foreach ($view->argument as $id => $argument) {
    if ($argument['type'] == 'json_simple') {
      $links .= views_json_simple_views_argument('post_view', $view, $argument['type'], '');
    }
    if ($argument['type'] == 'json_exhibit') {
      $links .= views_json_exhibit_views_argument('post_view', $view, $argument['type'], '');
    }
  }
  return $links;
}