You are here

function uc_order_template_options in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_order/uc_order.module \uc_order_template_options()
  2. 6.2 uc_order/uc_order.module \uc_order_template_options()

Returns a list of options for a template select box.

1 call to uc_order_template_options()
uc_order_settings_form in uc_order/uc_order.admin.inc
Generates the settings form for orders.
1 string reference to 'uc_order_template_options'
uc_order_rules_action_info in uc_order/uc_order.rules.inc
Implements hook_rules_action_info().

File

uc_order/uc_order.module, line 1882

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;
}