You are here

static function views_crosstab_table::crosstab_operation_header in Views Crosstab 7

Returns the header name for the given aggretation operation.

Parameters

string $op: The capitalized name of the aggregation operation.

Return value

string The header name for this operation.

2 calls to views_crosstab_table::crosstab_operation_header()
views_crosstab_table::query in plugins/views_crosstab_table.inc
Add cross table column fields and alter the query.
views_crosstab_table::render_fields in plugins/views_crosstab_table.inc
Render all of the fields for a given style and store them on the object.

File

plugins/views_crosstab_table.inc, line 148
Plugin functions

Class

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

Code

static function crosstab_operation_header($op) {
  $ops = array(
    'COUNT' => t('Total'),
    'SUM' => t('Total'),
    'AVG' => t('Average'),
    'MIN' => t('Minimum'),
    'MAX' => t('Maximum'),
  );
  return $ops[$op];
}