function batch_menu

6.x batch.module batch_menu()
5.x batch.module batch_menu()

Implementation of hook_menu

File

modules/batch/batch.module, line 16

Code

function batch_menu() {

  $items = array();

  // Our test batch process, for testing...
  $items ["batch-test-form"] = array(
    "title" => "Batch Test - Form",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("batch_test_form"),
    "access_arguments" => array("batch_run_test"),
    "type" => MENU_TYPE_CALLBACK,
    "file" => menu_get_module_path("batch") . "/batch.test.inc",
  );


  $items ["batch-processing/%"] = array(
    "page_callback" => "batch_processing_page",
    "page_arguments" => array(1),
    "access_callback" => TRUE,
    "type" => MENU_TYPE_CALLBACK,
  );


  $items ["batch-finished/%"] = array(
    "page_callback" => "batch_finished_page",
    "page_arguments" => array(1),
    "access_callback" => TRUE,
    "type" => MENU_TYPE_CALLBACK,
  );


  $items ["batch-ajax-callback/%"] = array(
    "page_callback" => "batch_ajax_callback",
    "page_arguments" => array(1),
    "access_callback" => TRUE,
    "type" => MENU_TYPE_CALLBACK,
  );




  return $items;

}