You are here

function uc_order_template_options in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.module \uc_order_template_options()
  2. 7.3 uc_order/uc_order.module \uc_order_template_options()
2 calls to uc_order_template_options()
uc_notify_checkout_form in uc_notify/uc_notify.module
uc_order_settings_form in uc_order/uc_order.module
Generate the settings form for orders.

File

uc_order/uc_order.module, line 2980

Code

function uc_order_template_options($custom = FALSE) {
  $templates = uc_invoice_template_list();
  $templates = drupal_map_assoc(uc_invoice_template_list());
  if ($custom) {
    $templates[0] = t('Custom template');
  }
  return $templates;
}