You are here

function _commerce_stripe_credit_card_field_remove_name in Commerce Stripe 7.2

Same name and namespace in other branches
  1. 7.3 commerce_stripe.module \_commerce_stripe_credit_card_field_remove_name()
  2. 7 commerce_stripe.module \_commerce_stripe_credit_card_field_remove_name()
1 string reference to '_commerce_stripe_credit_card_field_remove_name'
_commerce_stripe_credit_card_form in ./commerce_stripe.module

File

./commerce_stripe.module, line 187
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);
}