| 5 user.module | user_login_submit( |
| 6 user.module | user_login_submit($form, &$form_state) |
| 7 user.module | user_login_submit($form, &$form_state) |
| 8 user.module | user_login_submit($form, &$form_state) |
Submit handler for the login form. Redirects the user to a page.
The user is redirected to the My Account page. Setting the destination in the query string (as done by the user login block) overrides the redirect.
1 string reference to 'user_login_submit'
File
- modules/
user/ user.module, line 1423 - Enables the user registration and login system.
Code
function user_login_submit($form, &$form_state) {
global $user;
if ($user->uid) {
$form_state['redirect'] = 'user/' . $user->uid;
return;
}
}
Login or register to post comments