You are here

function commerce_invoice_theme in Commerce Invoice 7

Same name and namespace in other branches
  1. 8.2 commerce_invoice.module \commerce_invoice_theme()
  2. 7.2 commerce_invoice.module \commerce_invoice_theme()

Implements hook_theme().

File

./commerce_invoice.module, line 298
Generates the invoice and allows you to display an invoice id in views

Code

function commerce_invoice_theme() {
  return array(
    'commerce_invoice_number' => array(
      'variables' => array(
        'invoice_number' => NULL,
        'label' => NULL,
        'invoice' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_invoice') . '/theme',
      'template' => 'commerce-invoice-number',
    ),
    'commerce_invoice_created' => array(
      'variables' => array(
        'created' => NULL,
        'label' => NULL,
        'invoice' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_invoice') . '/theme',
      'template' => 'commerce-invoice-created',
    ),
  );
}