The batch_example.module in Examples project<http://drupal.org/project/examples>may be helpful. -Randy On Wed, Jun 9, 2010 at 1:25 PM, Jeff Greenberg <jeff@ayendesigns.com> wrote:
Have a module function hooking batch:
$batch = array( 'operations' => array( array('mymodule_batch_task', array($var1, $var2)), ),
'finished' => 'mymodule_batch_finished', 'title' => t('batch process'), 'init_message' => t('starting.'), 'progress_message' => t('Processed @current out of @total.'), 'error_message' => t('encountered an error.'), 'file' => 'mymodule.admin.inc', ); batch_set($batch);
The batch process messages appear on the screen as they should, but it seems that the operations function doesn't fire at all. I put a watchdog command before the above call, and it appears in the dblog report. I put a watchdog call at the beginning of mymodule_batch_task() and it doesn't show up, and neither does the watchdog call from the 'finished' function.
Jeff --
Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 ayendesigns.com IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns
Ayen Designs is a tradename of the computer services division of
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450