You are here

function pay_after_build in Pay 7

Same name and namespace in other branches
  1. 6 pay.module \pay_after_build()

A FAPI after_build handler for any type of pay form.

1 string reference to 'pay_after_build'
pay::form_setup in includes/handlers/pay.inc

File

./pay.module, line 376
Pay module allows for accepting payments using pluggable payment backends.

Code

function pay_after_build($form, &$form_state) {

  // Ensure that the pay_submit handler is added to the form after the others.
  $form['#validate'][] = 'pay_validate';
  $form['#submit'][] = 'pay_submit';
  return $form;
}