function commerce_invoice_pdf_html in Commerce Invoice 7.2
Debug page callback to view the HTML used for generating the PDF.
1 string reference to 'commerce_invoice_pdf_html'
- commerce_invoice_pdf_menu in modules/
pdf/ commerce_invoice_pdf.module - Implements hook_menu().
File
- modules/
pdf/ commerce_invoice_pdf.module, line 71 - The Commerce Invoice PDF module.
Code
function commerce_invoice_pdf_html(Invoice $invoice) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
echo theme('commerce_invoice_pdf_page', [
'invoice' => $invoice,
'browser' => TRUE,
]);
drupal_exit();
}