function _batch_start
7.x batch.inc | _batch_start() |
6.x batch.inc | _batch_start() |
Initiate the batch processing
1 call to _batch_start()
- _batch_page in drupal-6.x/
includes/ batch.inc - State-based dispatcher for the batch processing page.
File
- drupal-6.x/
includes/ batch.inc, line 52 - Batch processing API for processes to run in multiple HTTP requests.
Code
function _batch_start() {
// Choose between the JS and non-JS version.
// JS-enabled users are identified through the 'has_js' cookie set in drupal.js.
// If the user did not visit any JS enabled page during his browser session,
// he gets the non-JS version...
if (isset($_COOKIE['has_js']) && $_COOKIE['has_js']) {
return _batch_progress_page_js();
}
else {
return _batch_progress_page_nojs();
}
}