Last active
November 5, 2015 14:57
-
-
Save dchatry/e33ac647509485c644ec to your computer and use it in GitHub Desktop.
[Drupal] Redirection inside a node
This file contains hidden or 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
| function MODULE_node_view($node, $view_mode, $langcode) { | |
| if ($view_mode == 'full' && node_is_page($node)) { | |
| //It is safe to call drupal_goto() from here | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment