function uc_discounts_admin_checkout_pane_settings_form in Ubercart Discounts (Alternative) 7.2
Displays admin settings form for discounts checkout pane.
1 call to uc_discounts_admin_checkout_pane_settings_form()
- uc_discounts_uc_checkout_pane_discounts in uc_discounts/
uc_discounts.module - Discounts checkout pane callback.
File
- uc_discounts/
uc_discounts.admin.inc, line 1534 - Admin forms and functions for uc_discounts module.
Code
function uc_discounts_admin_checkout_pane_settings_form($form, &$form_state) {
$form['uc_discounts_checkout_allow_user_codes'] = array(
'#type' => 'checkbox',
'#title' => t('Allow customer to enter discount codes'),
'#description' => t('When enabled a text field will be displayed to the' . ' customer during checkout where they can enter discount codes.'),
'#default_value' => variable_get('uc_discounts_checkout_allow_user_codes', TRUE),
);
$form['uc_discounts_checkout_show_messages'] = array(
'#type' => 'checkbox',
'#title' => t('Show messages about discounts in discounts checkout pane'),
'#description' => t('When enabled messages about call discounts will be' . ' displayed to the customer during checkout in the discounts checkout' . ' pane. This provides additional information beyond the discount text' . ' displayed in the checkout cart pane and checkout payment pane.'),
'#default_value' => variable_get('uc_discounts_checkout_show_messages', TRUE),
);
return $form;
}