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_6.inc, line 195
Drupal 6 engine for the Batch API

Code

function _drush_batch_shutdown() {
  if ($batch = batch_get()) {
    db_query("UPDATE {batch} SET batch = '%s' WHERE bid = %d", serialize($batch), $batch['id']);
  }
}