Skip navigation
Help

$user

  1. drupal
    1. 6 documentation/developer/globals.php
    2. 7 documentation/developer/globals.php

Representation of the current user. Stores preferences and other user information.

File

documentation/developer/globals.php, line 79
These are the global variables that Drupal uses.

Code

global $user