You are here

function commerce_price_handler_filter_commerce_price_amount::options_form in Commerce Core 7

Provide the basic form which calls through to subforms.

If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides views_handler_filter::options_form

File

modules/price/includes/views/handlers/commerce_price_handler_filter_commerce_price_amount.inc, line 24

Class

commerce_price_handler_filter_commerce_price_amount
Filter handler to convert price filter to use decimal + currency.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['currency'] = array(
    '#type' => 'select',
    '#title' => t('Currency'),
    '#description' => t('Pick a currency to use for this filter.'),
    '#options' => commerce_currency_code_options_list(),
    '#default_value' => $this->options['currency'],
  );
}