function _batch_shutdown

Same name and namespace in other branches
  1. 6.x drupal-6.x/includes/batch.inc \_batch_shutdown()

Shutdown function: Stores the current batch data for the next request.

See also

_batch_page()

drupal_register_shutdown_function()

1 string reference to '_batch_shutdown'
_batch_page in drupal-7.x/includes/batch.inc
Renders the batch processing page based on the current state of the batch.

Archivo

drupal-7.x/includes/batch.inc, line 532
Batch processing API for processes to run in multiple HTTP requests.

Código

function _batch_shutdown() {
  if ($batch = batch_get()) {
    db_update('batch')->fields(array('batch' => serialize($batch)))->condition('bid', $batch['id'])->execute();
  }
}