function commerce_payment_handler_area_totals::options_form in Commerce Core 7
Provide the checkbox for enabling the Add payment form..
Overrides views_handler_area::options_form
File
- modules/
payment/ includes/ views/ handlers/ commerce_payment_handler_area_totals.inc, line 27
Class
- commerce_payment_handler_area_totals
- Defines a handler area that provides payment totals, the order balance, and a form to add new payments.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['add_payment_form'] = array(
'#type' => 'checkbox',
'#title' => t('Display an add payment form in the totals area when using a single order argument.'),
'#description' => t('The argument should be setup using a Views relationship on the transaction Order ID.'),
'#default_value' => $this->options['add_payment_form'],
);
}