You are here

function commerce_checkout_theme in Commerce Core 7

Same name and namespace in other branches
  1. 8.2 modules/checkout/commerce_checkout.module \commerce_checkout_theme()

Implements hook_theme().

File

modules/checkout/commerce_checkout.module, line 181
Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.

Code

function commerce_checkout_theme() {
  return array(
    'commerce_checkout_builder_form' => array(
      'render element' => 'form',
      'file' => 'includes/commerce_checkout.admin.inc',
    ),
    'commerce_checkout_review' => array(
      'render element' => 'form',
      'file' => 'includes/commerce_checkout.pages.inc',
    ),
    'commerce_checkout_help' => array(
      'variables' => array(
        'help' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_checkout') . '/theme',
      'template' => 'commerce-checkout-help',
    ),
    'commerce_checkout_errors_message' => array(
      'variables' => array(
        'label' => NULL,
        'message' => NULL,
      ),
      'path' => drupal_get_path('module', 'commerce_checkout') . '/theme',
      'template' => 'commerce-checkout-errors-message',
    ),
  );
}