function _commerce_stripe_credit_card_field_remove_name in Commerce Stripe 7
Same name and namespace in other branches
- 7.3 commerce_stripe.module \_commerce_stripe_credit_card_field_remove_name()
- 7.2 commerce_stripe.module \_commerce_stripe_credit_card_field_remove_name()
1 string reference to '_commerce_stripe_credit_card_field_remove_name'
File
- ./
commerce_stripe.module, line 469 - This module provides Stripe (http://stripe.com/) payment gateway integration to Commerce. Commerce Stripe offers a PCI-compliant way to process payments straight from you Commerce shop.
Code
function _commerce_stripe_credit_card_field_remove_name($content, $element) {
$name_pattern = '/\\sname\\s*=\\s*[\'"]?' . preg_quote($element['#name']) . '[\'"]?/';
return preg_replace($name_pattern, '', $content);
}