You are here

function uc_cart_form_alter in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_cart/uc_cart.module \uc_cart_form_alter()

Implements hook_form_alter().

File

uc_cart/uc_cart.module, line 335

Code

function uc_cart_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'user_login' || $form_id == 'user_login_block') {
    $form['#submit'] = array_merge(array(
      'uc_cart_user_login_form_submit',
    ), (array) $form['#submit']);
  }
}