function uc_order_view_invoice in Ubercart 7.3
Displays an order invoice.
1 string reference to 'uc_order_view_invoice'
- uc_order_menu in uc_order/
uc_order.module - Implements hook_menu().
File
- uc_order/
uc_order.module, line 1289
Code
function uc_order_view_invoice($order, $print = FALSE) {
$build = array(
'#theme' => 'uc_order',
'#order' => $order,
'#op' => $print ? 'print' : 'view',
'#template' => variable_get('uc_cust_order_invoice_template', 'customer'),
);
if ($print) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('uc_order_invoice_page', array(
'content' => drupal_render($build),
));
exit;
}
return $build;
}