You are here

function user_is_logged_in in Drupal 7

Same name and namespace in other branches
  1. 6 modules/user/user.module \user_is_logged_in()

Determines if the current user is logged in.

Return value

bool TRUE if the user is logged in, FALSE if the user is anonymous.

2 calls to user_is_logged_in()
user_menu_site_status_alter in modules/user/user.module
Implements hook_menu_site_status_alter().
user_menu_title in modules/user/user.module
Menu item title callback for the 'user' path.
2 string references to 'user_is_logged_in'
session_test_menu in modules/simpletest/tests/session_test.module
Implements hook_menu().
user_menu in modules/user/user.module
Implements hook_menu().

File

modules/user/user.module, line 1575
Enables the user registration and login system.

Code

function user_is_logged_in() {
  return (bool) $GLOBALS['user']->uid;
}