8.3.x session_test.module session_test_user_login($account)
8.0.x session_test.module session_test_user_login($account)
8.1.x session_test.module session_test_user_login($account)
8.2.x session_test.module session_test_user_login($account)
8.4.x session_test.module session_test_user_login($account)
7.x session_test.module session_test_user_login($edit = array(), $user = NULL)

Implements hook_user().

File

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

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;
  }
}