function commerce_payment_handler_field_currency_code::options_form in Commerce Core 7
Provide the currency code format option.
Overrides views_handler_field::options_form
File
- modules/
payment/ includes/ views/ handlers/ commerce_payment_handler_field_currency_code.inc, line 23 - 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 options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['display_format'] = array(
'#title' => t('Display format'),
'#type' => 'select',
'#options' => array(
'code' => t('Three letter code'),
'numeric_code' => t('Numeric code'),
'name' => t('Currency name'),
'symbol' => t('Currency symbol'),
),
'#default_value' => $this->options['display_format'],
);
}