You are here

function payment_ubercart_form_alter in Payment for Ubercart 7

Same name and namespace in other branches
  1. 7.2 payment_ubercart.module \payment_ubercart_form_alter()

Implements hook_form_alter().

File

./payment_ubercart.module, line 81
Hook implementations and shared functions.

Code

function payment_ubercart_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'uc_cart_checkout_form') {
    $form['#submit'] = array_unique(array(
      'payment_ubercart_checkout_form_submit',
      'uc_cart_checkout_form_submit',
    ));
  }
}