function uc_payment_settings_form in Ubercart 6.2
Same name and namespace in other branches
- 5 payment/uc_payment/uc_payment.module \uc_payment_settings_form()
Payment settings form.
1 string reference to 'uc_payment_settings_form'
- uc_payment_menu in payment/
uc_payment/ uc_payment.module - Implements hook_menu().
File
- payment/
uc_payment/ uc_payment.admin.inc, line 20 - Payment administration menu items.
Code
function uc_payment_settings_form() {
$form['uc_payment_tracking'] = array(
'#type' => 'checkbox',
'#title' => t('Enable payment tracking.'),
'#summary callback' => 'summarize_checkbox',
'#summary arguments' => array(
t('Payment tracking is enabled.'),
t('Payment tracking is disabled.'),
),
'#default_value' => variable_get('uc_payment_tracking', TRUE),
);
$form['uc_payment_deleting'] = array(
'#type' => 'checkbox',
'#title' => t('Allow payments to be deleted by users with permission.'),
'#summary callback' => 'summarize_checkbox',
'#summary arguments' => array(
t('Payments can be deleted by users with permission.'),
t('Payments cannot be deleted, even if the user has permission.'),
),
'#default_value' => variable_get('uc_payment_deleting', TRUE),
);
$form['uc_payment_logging'] = array(
'#type' => 'checkbox',
'#title' => t('Log payments entered and deleted to order log.'),
'#summary callback' => 'summarize_checkbox',
'#summary arguments' => array(
t('Log payments are being entered to and deleted from the order log.'),
t('Log payments are not being entered to and deleted from the order log.'),
),
'#default_value' => variable_get('uc_payment_logging', TRUE),
);
$form['uc_default_payment_msg'] = array(
'#type' => 'textfield',
'#title' => t('Default payment details message'),
'#description' => t('Message displayed when a payment method does not display any further details.'),
'#default_value' => variable_get('uc_default_payment_msg', t('Continue with checkout to complete payment.')),
'#summary' => t('Default payment details message is: <br /> %message', array(
'%message' => variable_get('uc_default_payment_msg', t('Continue with checkout to complete payment.')),
)),
);
return system_settings_form($form);
}