function _drush_batch_shutdown

8.0.x batch_6.inc _drush_batch_shutdown()
8.0.x batch.inc _drush_batch_shutdown()
6.x batch_6.inc _drush_batch_shutdown()
6.x batch.inc _drush_batch_shutdown()
7.x batch_6.inc _drush_batch_shutdown()
7.x batch.inc _drush_batch_shutdown()
3.x batch_6.inc _drush_batch_shutdown()
3.x batch_7.inc _drush_batch_shutdown()
4.x batch_6.inc _drush_batch_shutdown()
4.x batch.inc _drush_batch_shutdown()
5.x batch_6.inc _drush_batch_shutdown()
5.x batch.inc _drush_batch_shutdown()
master batch.inc _drush_batch_shutdown()

Shutdown function: store the batch data for next request, or clear the table if the batch is finished.

2 string references to '_drush_batch_shutdown'
_drush_batch_command in commands/core/drupal/batch_6.inc
Initialize the batch command and call the worker function.
_drush_batch_command in commands/core/drupal/batch.inc
Initialize the batch command and call the worker function.

File

commands/core/drupal/batch.inc, line 251
Drupal 7 engine for the Batch API

Code

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