You are here

function commerce_payment_theme in Commerce Core 7

Same name and namespace in other branches
  1. 8.2 modules/payment/commerce_payment.module \commerce_payment_theme()

Implements hook_theme().

File

modules/payment/commerce_payment.module, line 218
Defines the payment system and checkout integration.

Code

function commerce_payment_theme() {
  return array(
    'commerce_payment_transaction' => array(
      'variables' => array(
        'order' => NULL,
        'transaction' => NULL,
        'view_mode' => NULL,
      ),
    ),
    'commerce_payment_transaction_status_text' => array(
      'variables' => array(
        'text' => NULL,
        'transaction_status' => NULL,
      ),
    ),
    'commerce_payment_transaction_status_icon' => array(
      'variables' => array(
        'transaction_status' => NULL,
      ),
    ),
    'commerce_payment_totals' => array(
      'variables' => array(
        'rows' => array(),
        'form' => NULL,
        'totals' => array(),
        'view' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_payment') . '/theme',
      'template' => 'commerce-payment-totals',
    ),
  );
}