function user_is_anonymous

Determines if the current user is anonymous.

Return value

bool TRUE if the user is anonymous, FALSE if the user is authenticated.

4 calls to user_is_anonymous()
1 string reference to 'user_is_anonymous'

File

drupal/core/modules/user/user.module, line 825
Enables the user registration and login system.

Code

function user_is_anonymous() {

  // Menu administrators can see items for anonymous when administering.
  return !$GLOBALS['user']->uid || !empty($GLOBALS['menu_admin']);
}