You are here

function background_process_load in Background Process 7.2

Load a background process

Parameters

$pid: Process ID to load

File

./background_process.module, line 531

Code

function background_process_load($pid) {
  if (is_numeric($pid)) {
    return BackgroundProcess::load($pid);
  }
  else {
    return BackgroundProcess::loadByHandle($pid);
  }
}