function background_process_queue_locked in Background Process 7
Same name and namespace in other branches
- 8 background_process.module \background_process_queue_locked()
- 6 background_process.module \background_process_queue_locked()
- 7.2 background_process.module \background_process_queue_locked()
Queue locked background process.
Queue the function call passing function arguments as serialized data Be aware that the callback will run in a new request
@global string $base_url Base URL for this Drupal request
Parameters
string $handle: Handle to give background process
callback $callback: Function to call
mixed $var [, $... ]]: Arbitrary number of variables to pass on to the callback
Return value
mixed Handle on success, FALSE on failure
File
- ./
background_process.module, line 476
Code
function background_process_queue_locked($handle, $callback) {
$process = new BackgroundProcess($handle);
$args = func_get_args();
array_splice($args, 0, 2);
return $process
->queue($callback, $args);
}