Created
September 8, 2010 14:31
-
-
Save mrchrisadams/570206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// I want to redirect users to the same page after logging in (the log in form is embedded onto a page) | |
function client_util_form_alter(&$form, $form_state, $form_id) { | |
switch($form_id) { | |
case 'user_login': | |
$form['#redirect'] = FALSE; | |
break; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment