You are here

function hook_payment_form_alter in Payment 7

Alter the payment form.

Because the payment form is not always used through drupal_get_form(), you should use this hook, rather than hook_form_alter() or hook_form_FORM_ID_alter() to make changes to the payment form.

Parameters

array $elements: The array of form elements that are part of the payment form. Note that the top-level array is NOT a form.

array $form_state:

array $submit: An array with the names of form submit callbacks that should be called upon form submission.

Return value

NULL

1 function implements hook_payment_form_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

payment_payment_form_alter in tests/payment_test/payment_test.module
Implements hook_payment_form_alter().
1 invocation of hook_payment_form_alter()
payment_form_embedded in ./payment.ui.inc
Builds common elements for a payment add/edit form.

File

./payment.api.php, line 200
Hook documentation.

Code

function hook_payment_form_alter(array &$elements, array &$form_state, array &$submit) {
}