<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body style="direction: ltr;" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">Have a module function
hooking batch:</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">&nbsp; $batch = array(<br>
&nbsp;&nbsp;&nbsp; 'operations' =&gt; array(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; array('mymodule_batch_task', array($var1, $var2)),<br>
&nbsp;&nbsp;&nbsp; ),</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">&nbsp;&nbsp;&nbsp; 'finished' =&gt;
'mymodule_batch_finished',<br>
&nbsp;&nbsp;&nbsp; 'title' =&gt; t('batch process'),<br>
&nbsp;&nbsp;&nbsp; 'init_message' =&gt; t('starting.'),<br>
&nbsp;&nbsp;&nbsp; 'progress_message' =&gt; t('Processed @current out of @total.'),<br>
&nbsp;&nbsp;&nbsp; 'error_message' =&gt; t('encountered an error.'),<br>
&nbsp;&nbsp;&nbsp; 'file' =&gt; 'mymodule.admin.inc',<br>
&nbsp; );<br>
&nbsp; batch_set($batch);<br>
<br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">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.</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">Jeff<br>
</p>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0in;"><img
 src="cid:part1.02050601.06030002@ayendesigns.com" name="ayenlogo"
 valign="top" vspace="14" align="LEFT" border="0"><font
 style="font-size: 8pt;" size="1">Ayen Designs </font><font
 face="Times New Roman, serif"><font style="font-size: 8pt;" size="1">
<br>
388 Bullsboro Drive #105 &middot; Newnan, Georgia 30263</font></font>
<br>
<font face="Times New Roman, serif"><font style="font-size: 8pt;"
 size="1">404-271-9734<br>
<a href="http://ayendesigns.com">ayendesigns.com</a><br>
IM (Yahoo) baalwww&nbsp;&nbsp;&nbsp;&nbsp;(MSN) <a class="moz-txt-link-abbreviated" href="mailto:baalwww@yahoo.com">baalwww@yahoo.com</a><br>
Skype: ayendesigns
<br>
<br>
Ayen Designs is a tradename of the computer services division of <img
 src="cid:part2.01010608.05040506@ayendesigns.com" name="acmelogo"
 align="absmiddle"></font></font></p>
</div>
</body>
</html>