You are here

function QuantChartTable::render in Quant 7

Implements parent::render().

Overrides QuantChart::render

File

plugins/QuantChartTable.inc, line 32

Class

QuantChartTable
QuantChart plugin to provide simple HTML table charts

Code

function render() {

  // Generate the table
  $this->table = theme('table', array(
    'header' => $this->header,
    'rows' => $this->rows,
  ));

  // Generate the output
  $this->output = theme('quant_table', array(
    'table' => $this->table,
    'title' => $this->quant->label,
    'width' => variable_get('quant_width', 500),
  ));

  // Return the output
  return $this->output;
}