You are here

function pay_theme_theme in Pay 7

Same name and namespace in other branches
  1. 6 theme/pay.theme.inc \pay_theme_theme()

Implementation of hook_theme().

1 call to pay_theme_theme()
pay_theme in ./pay.module
Implements hook_theme().

File

theme/pay.theme.inc, line 11
Theme hooks and callbacks for the Payment API.

Code

function pay_theme_theme() {
  $path = drupal_get_path('module', 'pay') . '/theme';
  return array(
    // The all-purpose form renderer for payment forms.
    'pay_form' => array(
      'variables' => array(
        'form' => array(),
      ),
      'template' => 'pay_form',
      'pattern' => 'pay_form__',
      'path' => $path,
    ),
    'pay_form_default' => array(
      'variables' => array(
        'pay_form' => array(),
      ),
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_form_amount' => array(
      'variables' => array(
        'pay_form' => array(),
      ),
      'template' => 'pay_form_amount',
      'pattern' => 'pay_form_amount__',
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_form_link' => array(
      'variables' => array(
        'pay_form' => array(),
        'text' => 'Make a payment',
      ),
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_transaction' => array(
      'variables' => array(
        'pay_transaction' => array(),
      ),
      'template' => 'pay_transaction',
      'pattern' => 'pay_transaction__',
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_cc_form' => array(
      'render element' => 'element',
      'template' => 'pay_cc_form',
      'pattern' => 'pay_cc_form__',
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_money' => array(
      'variables' => array(
        'value' => 0,
        'currency' => 'USD',
      ),
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_activity_list' => array(
      'variables' => array(
        'activity' => array(),
      ),
    ),
  );
}