Skip navigation
Help

$user

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

An object representing the currently logged-in user.

Contains preferences and other user information.

File

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

Code

global $user