You are here

function uc_stripe_theme_registry_alter in Ubercart Stripe 6.2

Same name and namespace in other branches
  1. 7.3 uc_stripe.module \uc_stripe_theme_registry_alter()
  2. 7.2 uc_stripe.module \uc_stripe_theme_registry_alter()

Implements hook_theme_registry_alter() to make sure that we render the entire credit form, including the key returned by JS.

Parameters

$theme_registry:

File

./uc_stripe.module, line 655
A stripe.js PCI-compliant payment gateway Forked from Bitcookie's work (thanks!) which was posted at http://bitcookie.com/blog/pci-compliant-ubercart-and-stripe-js from discussion in the uc_stripe issue queue, https://www.drupal.org/node/1467886

Code

function uc_stripe_theme_registry_alter(&$theme_registry) {
  if (!empty($theme_registry['uc_payment_method_credit_form'])) {
    $theme_registry['uc_payment_method_credit_form']['function'] = 'uc_stripe_uc_payment_method_credit_form';
  }
}