batch_get

Versions
6 – 7
&batch_get()

Retrieves the current batch.

Related topics

▾ 12 functions call batch_get()

batch_process in includes/form.inc
Processes the batch.
batch_set in includes/form.inc
Opens a new batch.
drupal_process_form in includes/form.inc
This function is the heart of form API. The form gets built, validated and in appropriate cases, submitted.
form_execute_handlers in includes/form.inc
A helper function used to execute custom validation and submission handlers for a given form. Button-specific handlers are checked first. If none exist, the function falls back to form-level handlers.
_batch_current_set in includes/batch.inc
Retrieve the batch set being currently processed.
_batch_finished in includes/batch.inc
End the batch processing: Call the 'finished' callbacks to allow custom handling of results, and resolve page redirection.
_batch_next_set in includes/batch.inc
Move execution to the next batch set if any, executing the stored form _submit handlers along the way (thus possibly inserting additional batch sets).
_batch_page in includes/batch.inc
State-based dispatcher for the batch processing page.
_batch_process in includes/batch.inc
Advance batch processing for 1 second (or process the whole batch if it was not set for progressive execution - e.g forms submitted by drupal_execute).
_batch_progress_page_js in includes/batch.inc
Batch processing page with JavaScript support.
_batch_progress_page_nojs in includes/batch.inc
Batch processing page without JavaScript support.
_batch_shutdown in includes/batch.inc
Shutdown function: store the batch data for next request, or clear the table if the batch is finished.

Code

includes/form.inc, line 2550

<?php
function &batch_get() {
  static $batch = array();
  return $batch;
}
?>
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.