8.5.x form.inc &batch_get()
8.0.x form.inc &batch_get()
8.1.x form.inc &batch_get()
8.2.x form.inc &batch_get()
8.3.x form.inc &batch_get()
8.4.x form.inc &batch_get()
8.6.x form.inc &batch_get()
6.x form.inc &batch_get()
7.x form.inc &batch_get()

Retrieves the current batch.

Related topics

13 calls to batch_get()
authorize.php in ./authorize.php
Administrative script for running authorized file operations.
batch_process in includes/form.inc
Processes the batch.
batch_set in includes/form.inc
Adds a new batch.
FormsProgrammaticTestCase::testSubmissionWorkflow in modules/simpletest/tests/form.test
Test the programmatic form submission workflow.
update.php in ./update.php
Administrative page for handling updates from one Drupal version to another.

... See full list


includes/form.inc, line 4724
Functions for form and batch generation and processing.


function &batch_get() {

  // Not drupal_static(), because Batch API operates at a lower level than most
  // use-cases for resetting static variables, and we specifically do not want a
  // global drupal_static_reset() resetting the batch information. Functions
  // that are part of the Batch API and need to reset the batch information may
  // call batch_get() and manipulate the result by reference. Functions that are
  // not part of the Batch API can also do this, but shouldn't.
  static $batch = array();
  return $batch;