You are here

function commerce_invoice_pdf_theme in Commerce Invoice 7.2

Implements hook_theme().

File

modules/pdf/commerce_invoice_pdf.module, line 288
The Commerce Invoice PDF module.

Code

function commerce_invoice_pdf_theme() {
  $items['commerce_invoice_pdf_page'] = array(
    'variables' => [
      'invoice' => NULL,
      'inline_css' => '',
      'browser' => FALSE,
    ],
    'template' => 'commerce-invoice-pdf-page',
    'path' => drupal_get_path('module', 'commerce_invoice_pdf') . '/templates',
  );
  return $items;
}