You are here

function commerce_worldpay_bg_theme in Commerce Worldpay 7

Implements hook_theme().

File

./commerce_worldpay_bg.module, line 86
Provides a Worldpay Business Gateway payment method for Drupal Commerce.

Code

function commerce_worldpay_bg_theme() {
  $common_vars = array(
    'installation_id' => NULL,
    'order' => NULL,
    'order_id' => NULL,
    'order_no' => NULL,
    'wp_txn_id' => NULL,
    'settings' => NULL,
  );
  return array(
    'commerce_worldpay_bg_html' => array(
      'variables' => $common_vars += array(
        'page' => NULL,
      ),
      'template' => 'theme/commerce-worldpay-bg-html',
      'file' => 'includes/commerce_worldpay_bg.theme.inc',
    ),
    'commerce_worldpay_bg_page' => array(
      'variables' => $common_vars += array(
        'content' => NULL,
      ),
      'template' => 'theme/commerce-worldpay-bg-page',
      'file' => 'includes/commerce_worldpay_bg.theme.inc',
    ),
    'commerce_worldpay_bg_success' => array(
      'variables' => $common_vars,
      'template' => 'theme/commerce-worldpay-bg-success',
      'file' => 'includes/commerce_worldpay_bg.theme.inc',
    ),
    'commerce_worldpay_bg_cancel' => array(
      'variables' => $common_vars,
      'template' => 'theme/commerce-worldpay-bg-cancel',
      'file' => 'includes/commerce_worldpay_bg.theme.inc',
    ),
  );
}