| 6 batch_example.module | batch_example_page() |
Related topics
1 string reference to 'batch_example_page'
File
- batch_example/
batch_example.module, line 142 - This is an example outlining how a module can define batches.
Code
function batch_example_page() {
batch_set(batch_example_batch_1());
// We're not inside a form submission workflow, so we have to manually
// trigger the batch processing - this issues a drupal_goto and thus ends
// current request.
// We also specify here where we want to redirect after batch processing.
batch_process('batch_example/example_1');
}
Login or register to post comments