You are here

function commerce_price_components_handler_area_order_total::options_form in Commerce price by components 7

Default options form that provides the label widget that all fields should have.

Overrides views_handler_area::options_form

File

includes/views/handlers/commerce_price_components_handler_area_order_total.inc, line 21

Class

commerce_price_components_handler_area_order_total
Defines an order total area handler that shows the order total field with its components listed in the footer of a View.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form += commerce_price_components_settings_form($this->options);
  $form['commerce_price_components']['#states'] = array(
    'invisible' => array(
      'input[name="options[info][total]"]' => array(
        'checked' => FALSE,
      ),
    ),
  );
}