function commerce_gc_handler_field_amount::options_form in Commerce GC 7
Provide the currency format option.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ commerce_gc_handler_field_amount.inc, line 21 - Provides the transaction amount field handler.
Class
- commerce_gc_handler_field_amount
- @file Provides the transaction amount field handler.
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'],
);
}