function commerce_payment_handler_field_balance::options_form in Commerce Core 7
Provide the currency format option.
Overrides views_handler_field::options_form
File
- modules/
payment/ includes/ views/ handlers/ commerce_payment_handler_field_balance.inc, line 24
Class
- commerce_payment_handler_field_balance
- Field handler to be able to show the balance order with currency.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['display_format'] = array(
'#type' => 'select',
'#title' => t('Display format'),
'#options' => array(
'formatted' => t('Currency formatted amount'),
'raw' => t('Raw amount'),
),
'#default_value' => $this->options['display_format'],
);
}