Did you add the #theme function to hook_theme? #theme should work the same. I don't believe there were any changes to how it is handled in drupal_render.<br><br>.darrel.<br><br><div class="gmail_quote">On Wed, Jul 9, 2008 at 7:32 PM, Syscrusher <<a href="mailto:syscrusher@4th.com">syscrusher@4th.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Good evening!<br>
<br>
I have a form that works fine in Drupal 5 and uses the #theme attribute<br>
to invoke a user-defined function. I'm trying to update the module to<br>
Drupal 6, and am getting no errors, but the #theme function is no longer<br>
being invoked (I placed trace statements there, and am using<br>
devel.module for diagnostic printing using dprint_r()).<br>
<br>
I checked the upgrade-your-module documentation (which is excellent,<br>
btw), but there's no mention of a change to how #theme works. Have I<br>
overlooked a change that's documented elsewhere?<br>
<br>
Here are the code snippets. In the code that generates the $form array,<br>
I have this:<br>
<br>
$form['links_related']['#theme'] = 'links_related_form';<br>
<br>
and the theme function is defined thusly:<br>
<br>
function theme_links_related_form($form)<br>
<br>
I have a trace print() statement right inside that function as the first<br>
line, so I know the function isn't being called.<br>
<br>
By the way, the form itself generates and executes correctly, with all<br>
fields working. The only problem is that the theming isn't being called,<br>
so I'm getting plain vanilla output rather than the table that is<br>
supposed to neatly align the columns (my theme function calls Drupal's<br>
core theme('table', ....) function to do this).<br>
<br>
Again, this worked in D5, so I'm looking for what needs to change for<br>
D6.<br>
<br>
Thanks for any suggestions.<br>
<br>
Scott<br>
<font color="#888888">--<br>
Syscrusher <<a href="mailto:syscrusher@4th.com">syscrusher@4th.com</a>><br>
<br>
</font></blockquote></div><br>