Showing posts with label Drupal PHP Snippets. Show all posts
Showing posts with label Drupal PHP Snippets. Show all posts

Drupal 6: How to determine if User is Logged In or not

In Drupal, data for the current user is stored in the global variable $user. To determine if the user is logged in, use the following code: