function batch_get_token

6.x batch.module batch_get_token()
5.x batch.module batch_get_token()

Return a token for this user.

5 calls to batch_get_token()
batch_ajax_callback in modules/batch/batch.module
This function is called by ajax, and will trigger each run of the batch operation function, then return appropriate results back to our javascript.
batch_finished_page in modules/batch/batch.module
We redirect to this page when we have finished a batch.
batch_processing_page in modules/batch/batch.module
This is the page the user sees while a batch is being processed.
batch_set in modules/batch/batch.module
Create a new batch process.
batch_start_batch_from_form_submit in modules/batch/batch.module
A batch process is being initiated from a form submission.

File

modules/batch/batch.module, line 359

Code

function batch_get_token() {
  global $user;

  $uid = 0;
  if (isset($user->user_id)) {
    $uid = $user->user_id;
  }

  // Return back md5 of user_id + session_id.
  return md5($uid . session_id());

}