Created
August 2, 2017 17:19
-
-
Save dherbold/c5f92b0c74fd1d0a97a7de037c29a79a 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 global $user; | |
if ( ! $user->uid) { | |
$dest = drupal_get_destination(); | |
drupal_goto('user/login', array('query' => $dest)); | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment