You are here

function user_is_anonymous in Drupal 6

Same name and namespace in other branches
  1. 7 modules/user/user.module \user_is_anonymous()
2 calls to user_is_anonymous()
user_register_access in modules/user/user.module
_menu_site_is_offline in includes/menu.inc
Checks whether the site is off-line for maintenance.
2 string references to 'user_is_anonymous'
openid_menu in modules/openid/openid.module
Implementation of hook_menu.
user_menu in modules/user/user.module
Implementation of hook_menu().

File

modules/user/user.module, line 885
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']);
}