function user_is_logged_in

Same name and namespace in other branches
  1. 6.x drupal-6.x/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 drupal-7.x/modules/user/user.module
Implements hook_menu_site_status_alter().
user_menu_title in drupal-7.x/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-7.x/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-7.x/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
session_test_menu in drupal-7.x/modules/simpletest/tests/session_test.module
Implements hook_menu().
user_menu in drupal-7.x/modules/user/user.module
Implements hook_menu().

Archivo

drupal-7.x/modules/user/user.module, line 1544
Enables the user registration and login system.

Código

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