You are here

function _user_cancel_session_regenerate in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/user/user.module \_user_cancel_session_regenerate()
  2. 9 core/modules/user/user.module \_user_cancel_session_regenerate()
  3. 10 core/modules/user/user.module \_user_cancel_session_regenerate()

Implements callback_batch_finished().

Finished batch processing callback for cancelling a user account.

See also

user_cancel()

1 string reference to '_user_cancel_session_regenerate'
user_cancel in modules/user/user.module
Cancel a user account.

File

modules/user/user.module, line 2581
Enables the user registration and login system.

Code

function _user_cancel_session_regenerate() {

  // Regenerate the users session instead of calling session_destroy() as we
  // want to preserve any messages that might have been set.
  drupal_session_regenerate();
}