[development] Batch operation function not firing
Joe Pletcher
pletcher at longsight.com
Wed Jun 9 19:36:19 UTC 2010
I believe you need to call batch_process('node/to/redirect/to/when/finished');
Joe
On Jun 9, 2010, at 3:25 PM, Jeff Greenberg 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
> --
> <ayenlogo.jpeg>Ayen Designs
> 388 Bullsboro Drive #105 · Newnan, Georgia 30263
> 404-271-9734
> ayendesigns.com
> IM (Yahoo) baalwww (MSN) baalwww at yahoo.com
> Skype: ayendesigns
>
> Ayen Designs is a tradename of the computer services division of <acmelogo.jpeg>
More information about the development
mailing list