You are here

function payment_commerce_form_configuration in Payment for Drupal Commerce 7

Same name and namespace in other branches
  1. 7.2 payment_commerce.module \payment_commerce_form_configuration()

Implements form build callback for the configuration form.

1 string reference to 'payment_commerce_form_configuration'
payment_commerce_menu in ./payment_commerce.module
Implements hook_menu().

File

./payment_commerce.module, line 380
Hook implementations and shared functions.

Code

function payment_commerce_form_configuration(array $form, array &$form_state) {
  $form['payment_commerce_order_delete'] = array(
    '#type' => 'checkbox',
    '#title' => t('When deleting a Commerce order, delete its payments as well.'),
    '#default_value' => variable_get('payment_commerce_order_delete', FALSE),
  );
  return system_settings_form($form);
}