Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function _batch_do

Same name and namespace in other branches
  1. 11.x core/includes/batch.inc \_batch_do()
  2. 10 core/includes/batch.inc \_batch_do()
  3. 9 core/includes/batch.inc \_batch_do()
  4. 8.9.x core/includes/batch.inc \_batch_do()

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

See also

_batch_process()

1 call to _batch_do()
_batch_page in includes/batch.inc
Renders the batch processing page based on the current state of the batch.

File

includes/batch.inc, line 103

Code

function _batch_do () {
 // Perform actual processing.
 list($percentage, $message) = _batch_process ();
 drupal_json_output (array(
 'status' => TRUE,
 'percentage' => $percentage,
 'message' => $message,
 ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.