function batch_get
7.x form.inc | &batch_get() |
6.x form.inc | &batch_get() |
Retrieves the current batch.
Related topics
17 calls to batch_get()
- authorize.php in drupal-7.x/
authorize.php - Administrative script for running authorized file operations.
- batch_process in drupal-7.x/
includes/ form.inc - Processes the batch.
- batch_set in drupal-7.x/
includes/ form.inc - Adds a new batch.
- drupal_process_form in drupal-7.x/
includes/ form.inc - Processes a form submission.
- FormsProgrammaticTestCase::testSubmissionWorkflow in drupal-7.x/
modules/ simpletest/ tests/ form.test - Test the programmatic form submission workflow.
File
- drupal-7.x/
includes/ form.inc, line 4538 - Functions for form and batch generation and processing.
Code
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;
}