function batch_processing_page

7.x batch.module batch_processing_page($batch_id)
6.x batch.module batch_processing_page($batch_id)
5.x batch.module batch_processing_page($batch_id)

This is the page the user sees while a batch is being processed.

It will contain all the AJAX and such necessary to begin the batch process.

Parameters

unknown_type $batch_id:

File

modules/batch/batch.module, line 207

Code

function batch_processing_page($batch_id) {
  $rtn = "";

  $batch = batch_get($batch_id);
  if ($batch ["token"] != batch_get_token()) {
    return "<p>" . t("Sorry, there is a token mismatch or this batch no longer exists.") . "</p>";
  }



  fp_set_title($batch ["title"]);

  fp_add_css(fp_get_module_path("batch") . "/css/batch.css");

  // Set up our setting...
  fp_add_js(array("batch_id" => $batch_id), "setting");

  // Add our general js file...
  fp_add_js(fp_get_module_path("batch") . "/js/batch.js");





  $rtn .= "<div class='batch-progress-bar-wrapper'>
             <div class='batch-progress-bar' id='batch-progress-bar'></div>             
           </div>
           <div id='batch-progress-message'>" . t("Initializing... please wait...") . "</div>
           
           ";







  return $rtn;
}