diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-28 12:31:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-28 12:31:47 +0000 |
commit | fff9a5135292e6597e72b0a4323ef40d61c2ea00 (patch) | |
tree | 311392e1ebff40752045ed394f51127176626181 /modules/user/user.module | |
parent | 42518af257afecf3eac06dccd9c0a1aac1087fa0 (diff) | |
download | brdo-fff9a5135292e6597e72b0a4323ef40d61c2ea00.tar.gz brdo-fff9a5135292e6597e72b0a4323ef40d61c2ea00.tar.bz2 |
- Patch #38945 by wtanaka: made the login block redirect back to the original page.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 3d85bc93f..baf2af024 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -517,6 +517,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) { case 0: // For usability's sake, avoid showing two login forms on one page. if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) { + $form['#action'] = url($_GET['q'], drupal_get_destination()); $form['#attributes'] = array('id' => 'user-login-form'); $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#maxlength' => 64, '#size' => 15); $form['pass'] = array('#type' => 'password', '#title' => t('Password'), '#maxlength' => 64, '#size' => 15); |