Eternalistic Designs

Freelance Switch

$user and what it can do

There are a few variables that we can access from anywhere at anytime in Drupal, and the most important one is $user. The object $user contains (almost) everything you’ll ever need to know about the user that is currently surfing the web site.

Be sure to check out 11 Heavens' article covering just about everything you need to know regarding the $user variable.