Same name and namespace in other branches
  1. 6.x-1.x batch_example/batch_example.module \batch_example_menu()

Implements hook_menu().

Related topics

File

batch_example/batch_example.module, line 33
Outlines how a module can use the Batch API.

Code

function batch_example_menu() {
  $items = array();
  $items['examples/batch_example'] = array(
    'title' => 'Batch example',
    'description' => 'Example of Drupal batch processing',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'batch_example_simple_form',
    ),
    'access callback' => TRUE,
  );
  return $items;
}