You are here

function commerce_payment_handler_field_amount::init in Commerce Core 7

Init the handler with necessary data.

Parameters

view $view: The $view object this handler is attached to.

array $options: The item from the database; the actual contents of this will vary based upon the type of handler.

Overrides views_handler_field::init

File

modules/payment/includes/views/handlers/commerce_payment_handler_field_amount.inc, line 12
Contains the basic amount field handler.

Class

commerce_payment_handler_field_amount
Field handler to allow rendering of the amount using currency formatting.

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  $this->additional_fields['currency_code'] = 'currency_code';
}