1.15.x form.inc &batch_get()
1.15.x form.inc &batch_get()
1.12.x form.inc &batch_get()
1.14.x form.inc &batch_get()
1.10.x form.inc &batch_get()
1.11.x form.inc &batch_get()
1.13.x form.inc &batch_get()
1.13.x form.inc &batch_get()
1.7.x form.inc &batch_get()
1.8.x form.inc &batch_get()
1.9.x form.inc &batch_get()

Retrieves the current batch.

Related topics


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


function &batch_get() {
  // Not backdrop_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 backdrop_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;