function uc_payment_settings_form in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.admin.inc \uc_payment_settings_form()
1 string reference to 'uc_payment_settings_form'
- uc_payment_menu in payment/
uc_payment/ uc_payment.module - Implementation of hook_menu().
File
- payment/
uc_payment/ uc_payment.module, line 358
Code
function uc_payment_settings_form() {
$form['uc_payment_tracking'] = array(
'#type' => 'checkbox',
'#title' => t('Enable payment tracking.'),
'#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.'),
'#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.'),
'#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.')),
);
return system_settings_form($form);
}