[development] Batch operation function not firing
Randy Fay
randy at randyfay.com
Wed Jun 9 20:17:00 UTC 2010
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 at 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 at yahoo.com
> Skype: ayendesigns
>
> Ayen Designs is a tradename of the computer services division of
>
--
Randy Fay
Drupal Module and Site Development
randy at randyfay.com
+1 970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100609/f0bdab68/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 8316 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20100609/f0bdab68/attachment.jpe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1462 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20100609/f0bdab68/attachment-0001.jpe
More information about the development
mailing list