batch_example.module

Version

1.4 (checked in on 2008/10/12 at 08:52:36 by davereid)

Description

This is an example outlining how a module can define batches.

Batches allow heavy processing to be spread out over several page requests, thus ensuring that the processing does not get interrupted because of a PHP timeout, while allowing the user to receive feedback on the progress of the ongoing operations.

Functions

Namesort iconDescription
batch_example_batch_1Batch 1 : Load 100 times the node with the lowest nid
batch_example_batch_2Batch 2 : load all nodes 5 by 5, 20 times (Multipart operation)
batch_example_finishedBatch 'finished' callback used by both batch 1 and batch 2
batch_example_menuImplementation of hook_menu().
batch_example_multistep_formMultistep form
batch_example_multistep_form_submit
batch_example_op_1Batch operation for batch 1 : lode a node...
batch_example_op_2Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the
batch_example_page
batch_example_simple_formTest 1 : Simple form
batch_example_simple_form_submit