[development] display table in user_edit form

Dave Cohen drupal at dave-cohen.com
Mon Sep 25 23:33:52 UTC 2006


Question about displaying form fields in a table.  I've read some 
documentation <http://drupal.org/node/47582>.  The solution described there 
involves defining a theme function named after the form_id.

In my case, the form is a category in user edit pages.  This means I don't 
have control over the form_id.  It's 'user_edit', and the same form_id is 
used for all categories on the user edit pages.

So, while I could define theme_user_edit() to render my form as a table, I 
don't think that's the right way.  Because while my module could do it, it 
would be incompatible with any other modules or themes that also define 
theme_user_edit().

Can anyone recommend a workaround or other way to render a table on the user 
edit pages?

Thanks,

-Dave


More information about the development mailing list