Examples using batch API. (drupal 6)
2 'harmless' batches are defined : batch 1 : Load 100 times the node with the lowest nid batch 2 : Load all nodes, 20 times (uses a progressive op : load nodes by groups of 5)
The module defines the following pages :
This example is part of the Examples for Developers Project which you can download and experiment with here: http://drupal.org/project/examples
| Name | Description |
|---|---|
| batch_example_batch_1 | Batch 1 : Load 100 times the node with the lowest nid |
| batch_example_batch_2 | Batch 2 : load all nodes 5 by 5, 20 times (Multipart operation) |
| batch_example_finished | Batch 'finished' callback used by both batch 1 and batch 2 |
| batch_example_menu | Implementation of hook_menu(). |
| batch_example_multistep_form | Multistep form |
| batch_example_multistep_form_submit | |
| batch_example_op_1 | Batch operation for batch 1 : lode a node... |
| batch_example_op_2 | Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the |
| batch_example_page | |
| batch_example_simple_form | Test 1 : Simple form |
| batch_example_simple_form_submit |
examples/