You are here

function background_process_check_token in Background Process 6

Same name and namespace in other branches
  1. 8 background_process.pages.inc \background_process_check_token()
  2. 7.2 background_process.pages.inc \background_process_check_token()
  3. 7 background_process.pages.inc \background_process_check_token()

Callback for token validation.

1 string reference to 'background_process_check_token'
background_process_menu in ./background_process.module
Implements hook_menu().

File

./background_process.pages.inc, line 11
@TODO is this file neccessary?

Code

function background_process_check_token($encode_detector = '') {
  drupal_set_header("Content-type: text/plain");
  $data = array();
  $data['token'] = variable_get('background_process_token', '');
  $data['encode_detector'] = $encode_detector;
  print serialize($data);
  exit;
}