function uc_order_template_options in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_template_options()
- 7.3 uc_order/uc_order.module \uc_order_template_options()
Return a list of options for a template select box.
2 calls to uc_order_template_options()
- uc_order_action_email_invoice_form in uc_order/
uc_order.ca.inc - uc_order_settings_form in uc_order/
uc_order.admin.inc - Generates the settings form for orders.
File
- uc_order/
uc_order.module, line 1709
Code
function uc_order_template_options($custom = FALSE) {
$templates = drupal_map_assoc(uc_invoice_template_list());
if ($custom) {
$templates[0] = t('Custom template');
}
return $templates;
}