<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>I have a form that I need to format (theme) as a table. The D6 version of the module works just fine. The D7 version is being rather obstinate.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>Since I have a dsm() in the theme function, I know it is firing. However, the variables array passed to the theme has an empty array in it. Anyone see what I'm doing wrong?<br></span></div><div>&nbsp;<br><span style="font-size: 13px;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">function log_cleanup_theme() {<br>&nbsp; return
 array(<br>&nbsp;&nbsp;&nbsp; 'log_cleanup_settings' =&gt; array(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'variables' =&gt; array('form' =&gt; array()),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'render element' =&gt; 'form',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ),<br>&nbsp;&nbsp;&nbsp; );<br>}<br><br></span></span><span style="font-size: 13px;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">function theme_log_cleanup_settings(&amp;$variables) {<br>&nbsp; $form = $variables['form'];<br>&nbsp; dsm(print_r($variables, true));<br><br>&nbsp; $output = '';<br>&nbsp; $table = array();<br>&nbsp; $table['rows'] = array();<br>&nbsp; $table['header'] = array(<br>&nbsp;&nbsp;&nbsp; t('Message Type'),<br>&nbsp;&nbsp;&nbsp; t('Interval'),<br>&nbsp;&nbsp;&nbsp; );<br><br>&nbsp; // Spin through the intervals elements.<br>&nbsp; foreach (element_children($form['intervals']) as $key) {</span></span><br><br></div><div><font color="#ff007f" face="bookman old
 style, new york, times, serif" size="4"><i><b>Nancy</b></i></font> <br></div><div><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div></div></body></html>