You are here

function _background_batch_page_start in Background Process 7.2

Same name and namespace in other branches
  1. 6 background_batch/background_batch.pages.inc \_background_batch_page_start()
  2. 7 background_batch/background_batch.pages.inc \_background_batch_page_start()
2 calls to _background_batch_page_start()
background_batch_page in background_batch/background_batch.pages.inc
State-based dispatcher for the batch processing page.
_background_batch_process_callback in background_batch/background_batch.module

File

background_batch/background_batch.pages.inc, line 150
Pages for background batch.

Code

function _background_batch_page_start() {
  _background_batch_initiate(TRUE);
  if (isset($_COOKIE['has_js']) && $_COOKIE['has_js']) {
    return _background_batch_page_progress_js();
  }
  else {
    return _background_batch_page_do_nojs();
  }
}