[development] Form fields in a table
jeff at ayendesigns.com
Fri Sep 3 20:13:02 UTC 2010
Ah, yes, defintey ['table'] was an issue. I've made those changes,
including the & before $f, but the output is the same.
One thing that of note that might be a clue is that not even the table
heading is showing since I moved the theme('table'... call to a theme
function. I just get the upper standard part of the form, all the fields
rendered as if the theming and drupal_render were being ignore
altogether (stacked vertically), and then the submit button.
On 09/03/2010 03:59 PM, John Fiala wrote:
> Hm. I'm wondering if $elements['table'] actually exists. Try
> http://pastebin.com/xU4F7C0m - pay attention to lines 51 through 58,
> that's where I made changes.
> Basically, I think the problem is that the $elements item _is_ the
> 'table' level, and that's why you're not finding your rows. And it's
> important to use $elements[$k] instead of $f, because drupal_render's
> changes need to go back to the calling function.
More information about the development