Created
May 30, 2014 04:09
-
-
Save flashvnn/db4bac7f40e4350170c9 to your computer and use it in GitHub Desktop.
Force drupal redirect with drupal_goto
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 | |
function mymodule_force_goto($url) { | |
$_GET['destination'] = $url; | |
drupal_goto($url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment