1.20.x batch.inc _batch_do()

Does one execution pass with JavaScript and returns progress to the browser.

See also

_batch_progress_page_js()

_batch_process()

File

includes/batch.inc, line 110
Batch processing API for processes to run in multiple HTTP requests.

Code

function _batch_do() {
  // Perform actual processing.
  list($percentage, $message) = _batch_process();

  backdrop_json_output(array('status' => TRUE, 'percentage' => $percentage, 'message' => $message));
}