diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-21 06:44:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-21 06:44:14 +0000 |
commit | ee8aa910b9db2f90bfb46ba852eaa349343d5e04 (patch) | |
tree | 00b849b68e65ae170278f74c422434f4a0bae55d /modules/user/user.module | |
parent | 0741d8e32320f4578853ae92b242c2f7cd2d339a (diff) | |
download | brdo-ee8aa910b9db2f90bfb46ba852eaa349343d5e04.tar.gz brdo-ee8aa910b9db2f90bfb46ba852eaa349343d5e04.tar.bz2 |
Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-).
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 9cb594c73..cf41f9d7e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3078,7 +3078,7 @@ function user_register($form, &$form_state) { ); // Redirect back to page which initiated the create request; // usually admin/people/create. - $form['destination'] = array('#type' => 'hidden', '#value' => $_GET['q']); + $form_state['redirect'] = $_GET['q']; } // Create a dummy variable for pass-by-reference parameters. |