You are here

function payment_test_form_payment_element in Payment 7

Implements form submit callback for testing the submission of form elements.

2 string references to 'payment_test_form_payment_element'
payment_test_form_payment_amount in tests/payment_test/payment_test.module
Implements form build callback: show a payment_amount element.
payment_test_form_payment_line_item in tests/payment_test/payment_test.module
Implements form build callback: show a payment_line_item element.

File

tests/payment_test/payment_test.module, line 165
Hook implementations and shared functions.

Code

function payment_test_form_payment_element(array $form, array &$form_state) {

  // Redirect, so we can test whether form errors were thrown.
  $form_state['redirect'] = 'user';
}