You are here

function CurrencyAmountViewsHandlerField::query in Currency 7.2

Overrides parent::query().

Overrides views_handler_field::query

File

currency/includes/CurrencyAmountViewsHandlerField.inc, line 48
Contains class CurrencyAmountViewsHandlerField.

Class

CurrencyAmountViewsHandlerField
A Views field handler for currency amounts.

Code

function query() {
  $this
    ->ensure_my_table();
  if ($this->definition['currency_code_field']) {
    $this->additional_fields['currency_code_field'] = array(
      'field' => $this->definition['currency_code_field'],
      'table' => $this->definition['currency_code_table'] ? $this->definition['currency_code_table'] : $this->table_alias,
    );
  }
  parent::query();
}