You are here

function background_process_service_start in Background Process 6

Same name and namespace in other branches
  1. 8 background_process.module \background_process_service_start()
  2. 7.2 background_process.module \background_process_service_start()
  3. 7 background_process.module \background_process_service_start()

Call the function requested by the service call

Parameters

$handle: Raw URL encoded handle of process

$return: Whether or not the function should return or exit.

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

File

./background_process.module, line 511

Code

function background_process_service_start($handle, $return = FALSE) {
  drupal_set_header('Content-Type: text/plain');

  // Setup service
  ignore_user_abort(TRUE);
  @set_time_limit(variable_get('background_process_service_timeout', BACKGROUND_PROCESS_SERVICE_TIMEOUT));

  // Damn those slashes!
  $handle = rawurldecode($handle);
  return background_process_service_execute($handle, $return);
}