You are here

function commerce_payment_handler_field_currency_code::render in Commerce Core 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/payment/includes/views/handlers/commerce_payment_handler_field_currency_code.inc, line 39
Contains the basic currency code field handler.

Class

commerce_payment_handler_field_currency_code
Field handler to allow rendering of the currency code in different formats.

Code

function render($values) {
  $currency_code = $this
    ->get_value($values);
  $currency = commerce_currency_load($currency_code);
  return $this
    ->sanitize_value($currency[$this->options['display_format']]);
}