Created
March 25, 2017 10:56
-
-
Save rintoug/01d669906b88d56632cad497205575cc to your computer and use it in GitHub Desktop.
Check if user is logged in Drupal 7
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
<?php | |
global $user; | |
if ( $user->uid ) { | |
// Logged in user | |
} | |
else { | |
// Not logged in | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment