You are here

function background_process_queue in Background Process 8

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

Implements Queue the function call passing function arguments.

File

./background_process.module, line 360
This module implements a framework for calling funtions in the background.

Code

function background_process_queue($callback) {
  $process = new BackgroundProcess();
  $args = func_get_args();
  array_splice($args, 0, 1);
  return $process
    ->queue($callback, $args);
}