function uc_stripe_theme_registry_alter in Ubercart Stripe 7.3
Same name and namespace in other branches
- 6.2 uc_stripe.module \uc_stripe_theme_registry_alter()
- 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 994 - 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';
}
}