function uc_order_settings_form in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_settings_form()
- 6.2 uc_order/uc_order.admin.inc \uc_order_settings_form()
Generates the settings form for orders.
1 string reference to 'uc_order_settings_form'
- uc_order_menu in uc_order/
uc_order.module - Implements hook_menu().
File
- uc_order/
uc_order.admin.inc, line 27 - Order administration menu items.
Code
function uc_order_settings_form($form, &$form_state) {
$form['invoice']['uc_cust_order_invoice_template'] = array(
'#type' => 'select',
'#title' => t('On-site invoice template'),
'#description' => t('Select the invoice template to use when invoices are viewed on the site.'),
'#options' => uc_order_template_options(),
'#default_value' => variable_get('uc_cust_order_invoice_template', 'customer'),
);
if (module_exists('uc_cart')) {
$form['invoice']['uc_cust_order_invoice_template']['#description'] .= '<br />' . t('This is separate from the template used to e-mail invoices to customers which is configured through <a href="!url">Rules</a>.', array(
'!url' => url('admin/store/settings/checkout/rules'),
));
}
return system_settings_form($form);
}