function session_test_user_login

Same name in other branches
  1. 9 core/modules/system/tests/modules/session_test/session_test.module \session_test_user_login()
  2. 8.9.x core/modules/system/tests/modules/session_test/session_test.module \session_test_user_login()
  3. 10 core/modules/system/tests/modules/session_test/session_test.module \session_test_user_login()
  4. 11.x core/modules/system/tests/modules/session_test/session_test.module \session_test_user_login()

Implements hook_user().

File

modules/simpletest/tests/session_test.module, line 169

Code

function session_test_user_login($edit = array(), $user = NULL) {
    if ($user->name == 'session_test_user') {
        // Exit so we can verify that the session was regenerated
        // before hook_user() was called.
        exit;
    }
}

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