[development] Forms API Question - Node with table like poll.module

Karoly Negyesi karoly at negyesi.net
Sat Nov 12 01:52:55 UTC 2005


>    // Now actually display the rows
>    for ($i = 0; $i < $count; $i++) {
>      $form['entries'][$i] =

Please look at the flowcharts http://drupal.org/node/37194 At this step  
you display nothing, you are building the form. Later on, you'll have a  
chance to theme your form (that it's only a part of a bigger form, that  
does not matter).

so

$form['entries']['#theme'] = 'theme_function_here';

If you need more advice (there are a lot of custom theme'd forms now in  
core) do not hesitate to write devel again.

Regards

NK


More information about the development mailing list