function _batch_shutdown in Drupal 6
Same name and namespace in other branches
- 8 core/includes/batch.inc \_batch_shutdown()
- 7 includes/batch.inc \_batch_shutdown()
- 9 core/includes/batch.inc \_batch_shutdown()
Shutdown function: store the batch data for next request, or clear the table if the batch is finished.
1 string reference to '_batch_shutdown'
- _batch_page in includes/
batch.inc - State-based dispatcher for the batch processing page.
File
- includes/
batch.inc, line 350 - Batch processing API for processes to run in multiple HTTP requests.
Code
function _batch_shutdown() {
if ($batch = batch_get()) {
db_query("UPDATE {batch} SET batch = '%s' WHERE bid = %d", serialize($batch), $batch['id']);
}
}