function user_is_logged_in

7.x 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 drupal/modules/user/user.module
Implements hook_menu_site_status_alter().
user_menu_title in drupal/modules/user/user.module
Menu item title callback for the 'user' path.
4 string references to 'user_is_logged_in'
drupal-6.bare.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
session_test_menu in drupal/modules/simpletest/tests/session_test.module
Implements hook_menu().
user_menu in drupal/modules/user/user.module
Implements hook_menu().

File

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

Code

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