You are here

views-data-export-json-body.tpl.php in Views data export - JSON support 7.2

Same filename and directory in other branches
  1. 7 theme/views-data-export-json-body.tpl.php

views-view-table.tpl.php Template to display a view as a table.

  • $title : The title of this group of rows. May be empty.
  • $rows: An array of row items. Each row is an array of content keyed by field ID.
  • $header: an array of headers(labels) for fields.
  • $themed_rows: a array of rows with themed fields.

File

theme/views-data-export-json-body.tpl.php
View source
<?php

/**
 * @file views-view-table.tpl.php
 * Template to display a view as a table.
 *
 * - $title : The title of this group of rows.  May be empty.
 * - $rows: An array of row items. Each row is an array of content
 *   keyed by field ID.
 * - $header: an array of headers(labels) for fields.
 * - $themed_rows: a array of rows with themed fields.
 * @ingroup views_templates
 */
foreach ($themed_rows as $count => $row) {
  ?>
  <?php

  if (!$first_in_file || $count != 0) {
    ?>,<?php

  }
  ?>
    <?php

  print json_encode($row);
}