function 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.

3 calls to user_is_logged_in()
CSRFAccessCheck::access in drupal/core/modules/rest/lib/Drupal/rest/Access/CSRFAccessCheck.php
Implements AccessCheckInterface::access().
MaintenanceModeSubscriber::onKernelRequestMaintenance in drupal/core/modules/user/lib/Drupal/user/EventSubscriber/MaintenanceModeSubscriber.php
Determine whether the page is configured to be offline.
user_menu_title in drupal/core/modules/user/user.module
Menu item title callback for the 'user' path.
1 string reference to 'user_is_logged_in'
session_test_menu in drupal/core/modules/system/tests/modules/session_test/session_test.module
Implements hook_menu().

File

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

Code

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