You are here

function pay_theme_theme in Pay 6

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

Implementation of hook_theme().

1 call to pay_theme_theme()
pay_theme in ./pay.module
Implementation of 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(
      'arguments' => array(
        'form' => array(),
      ),
      'template' => 'pay_form',
      'pattern' => 'pay_form__',
      'path' => $path,
    ),
    'pay_form_default' => array(
      'arguments' => array(
        'pay_form' => array(),
      ),
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_form_amount' => array(
      'arguments' => array(
        'pay_form' => array(),
      ),
      'template' => 'pay_form_amount',
      'pattern' => 'pay_form_amount__',
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_form_link' => array(
      'arguments' => array(
        'pay_form' => array(),
      ),
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_transaction' => array(
      'arguments' => array(
        'pay_transaction' => array(),
      ),
      'template' => 'pay_transaction',
      'pattern' => 'pay_transaction__',
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_cc_form' => array(
      'arguments' => array(
        'element' => array(),
      ),
      'template' => 'pay_cc_form',
      'pattern' => 'pay_cc_form__',
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_money' => array(
      'arguments' => array(
        'value' => 0,
        'currency' => 'USD',
      ),
      'file' => 'pay.theme.inc',
      'path' => $path,
    ),
    'pay_activity_list' => array(
      'arguments' => array(
        'activity' => array(),
      ),
    ),
  );
}