function uc_cart_user_login_form_submit in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_cart/uc_cart.module \uc_cart_user_login_form_submit()
When a user logs in, update their cart items before the session changes.
1 string reference to 'uc_cart_user_login_form_submit'
- uc_cart_form_alter in uc_cart/
uc_cart.module - Implements hook_form_alter().
File
- uc_cart/
uc_cart.module, line 845
Code
function uc_cart_user_login_form_submit($form, &$form_state) {
global $user;
unset($_SESSION['checkout-redirect']);
uc_cart_login_update($user->uid);
}