$user

An object representing the user currently visiting the site.

Contains preferences and other account information for logged-in users. When a user is not logged-in, the $user->uid property is set to 0.

File

external_documentation/developer/globals.php, line 85

Code

global $user;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.