_batch_shutdown

Versions
6 – 7
_batch_shutdown()

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

Code

includes/batch.inc, line 349

<?php
function _batch_shutdown() {
  if ($batch = batch_get()) {
    db_query("UPDATE {batch} SET batch = '%s' WHERE bid = %d", serialize($batch), $batch['id']);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.