You are here

function views_crosstab_table::option_definition in Views Crosstab 7

Define plugin options.

Overrides views_plugin_style_table::option_definition

File

plugins/views_crosstab_table.inc, line 20
Plugin functions

Class

views_crosstab_table
Style plugin to transform a linear query into a crosstab table.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['crosstab_rows'] = array(
    'default' => NULL,
  );
  $options['crosstab_columns'] = array(
    'default' => NULL,
  );
  $options['crosstab_data'] = array(
    'default' => NULL,
  );
  $options['crosstab_operation'] = array(
    'default' => 'COUNT',
  );
  $options['include_crosstab_operation_on_row'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );
  $options['include_crosstab_operation_on_column'] = array(
    'default' => TRUE,
    'bool' => TRUE,
  );
  $options['crosstab_decimals'] = array(
    'default' => '0',
  );
  return $options;
}