Snippets

Jamie Scott Drupal - Check user is logged in

Created by Jamie Scott
1
2
3
4
5
6
7
8
<?php 
if (user_is_logged_in()) {
  echo "Logged In";
}
else {
  echo "Logged Out";
}
?>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.