Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce-3337297
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
commerce-3337297
Commits
ea785121
Commit
ea785121
authored
8 years ago
by
Ryan Szrama
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2699821
: add more argument documentation for commerce_payment_credit_card_form().
parent
00abc7cc
No related branches found
Branches containing commit
Tags
8.x-3.0-alpha24
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/payment/includes/commerce_payment.credit_card.inc
+15
-2
15 additions, 2 deletions
modules/payment/includes/commerce_payment.credit_card.inc
with
15 additions
and
2 deletions
modules/payment/includes/commerce_payment.credit_card.inc
+
15
−
2
View file @
ea785121
...
...
@@ -10,10 +10,23 @@
* incorporate into their submission form callbacks.
*
* @param $fields
* An array specifying the CC fields that should be included on the form; the
* card number and expiration date fields are always present.
* An associative array specifying the fields that should be included on the
* credit card form. The card number and expiration fields are always present,
* and fields whose array keys listed below aren't set will be left out of the
* credit card form:
* - type: an array identifying supported card types using the keys of the
* return array from commerce_payment_credit_card_types().
* - owner: TRUE to include an owner name textfield.
* - start_date: TRUE to include start date select lists.
* - issue: boolean that when present enables an issue number field; if TRUE,
* makes the field required; if FALSE, makes the field optional.
* - code: text label to use for a security code / CVV textfield.
* - bank: TRUE to include a bank name textfield.
* @param $default
* An array of default values for the available CC fields.
*
* @return
* A credit card form array for use in another form.
*/
function
commerce_payment_credit_card_form
(
$fields
=
array
(),
$default
=
array
())
{
// Merge default values into the default array.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment