1. 1.12.x modules/views/templates/views-view-table.tpl.php
  2. 1.10.x modules/views/templates/views-view-table.tpl.php
  3. 1.11.x modules/views/templates/views-view-table.tpl.php
  4. 1.7.x modules/views/templates/views-view-table.tpl.php
  5. 1.8.x modules/views/templates/views-view-table.tpl.php
  6. 1.9.x modules/views/templates/views-view-table.tpl.php

Template to display a view as a table.

  • $classes: An array of classes to apply to the table, based on settings.
  • $attributes: An array of additional HTML attributes for the table.
  • $title : The title of this group of rows. May be empty.
  • $caption: The caption for this table. May be empty.
  • $header: An array of header labels indexed by field id.
  • $header_classes: An array of header classes indexed by field id.
  • $rows: An array of row items. Each row is an array of content. $rows are indexed by row number, fields within rows are indexed by field ID.
  • $row_classes: An array of classes to apply to each row, indexed by row number. This matches the index in $rows.
  • $fields: An array of CSS IDs to use for each field id.
  • $field_classes: An array of classes to apply to each field, indexed by field id, then row number. This matches the index in $rows.
  • $field_attributes: An array of additional HTML attributes for each field, also indexed by field id, then row number. This matches the index in $rows.

File

modules/views/templates/views-view-table.tpl.php

Related topics