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.

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().


modules/user/user.module, line 1584


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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.