You are here

function uc_order_theme in Ubercart 8.4

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.module \uc_order_theme()
  2. 7.3 uc_order/uc_order.module \uc_order_theme()

Implements hook_theme().

File

uc_order/uc_order.module, line 60
Handles all things concerning Ubercart orders.

Code

function uc_order_theme($existing, $type, $theme, $path) {
  $theme_hooks = [
    'uc_order_invoice' => [
      'variables' => [
        'order' => NULL,
        'op' => 'view',
        'template' => '',
        'thank_you_message' => FALSE,
        'help_text' => FALSE,
        'email_text' => FALSE,
        'store_footer' => FALSE,
        'business_header' => FALSE,
        'shipping_method' => FALSE,
      ],
      'template' => 'uc-order-invoice',
    ],
    'uc_order_invoice_page' => [
      'variables' => [
        'content' => NULL,
      ],
      'template' => 'uc-order-invoice-page',
    ],
  ];
  $theme_hooks += [
    'uc_order_invoice__admin' => [
      'variables' => $theme_hooks['uc_order_invoice']['variables'],
      'template' => 'uc-order-invoice--admin',
    ],
  ];
  return $theme_hooks;
}