batch_example.module

Version 1.3.2.1 (checked in on 2009/06/22 at 20:34:51 by jhodgdon)

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

NameDescription
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
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.