<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> <br><span style="font-size: 13px;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">function log_cleanup_theme() {<br> return
array(<br> 'log_cleanup_settings' => array(<br> 'variables' => array('form' => array()),<br> 'render element' => 'form',<br> ),<br> );<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(&$variables) {<br> $form = $variables['form'];<br> dsm(print_r($variables, true));<br><br> $output = '';<br> $table = array();<br> $table['rows'] = array();<br> $table['header'] = array(<br> t('Message Type'),<br> t('Interval'),<br> );<br><br> // Spin through the intervals elements.<br> 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>