You are here

function hook_uc_invoice_templates in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 docs/hooks.php \hook_uc_invoice_templates()

Adds invoice templates to the list of suggested template files.

Allows modules to declare new "types" of invoice templates (other than the default 'admin' and 'customer').

Return value

Array of template names that are available choices when mailing an invoice.

1 function implements hook_uc_invoice_templates()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

uc_order_uc_invoice_templates in uc_order/uc_order.module
Implements hook_uc_invoice_templates().
1 invocation of hook_uc_invoice_templates()
uc_invoice_template_list in uc_order/uc_order.module
Returns an array of invoice templates found in ubercart/uc_order/templates.

File

uc_order/uc_order.api.php, line 22
Hooks provided by the Order module.

Code

function hook_uc_invoice_templates() {
  return array(
    'admin',
    'customer',
  );
}