[development] display table in user_edit form
ufuk bayburt
ufukbay at gmail.com
Tue Sep 26 01:49:35 UTC 2006
you can use #theme property for the form that you add. again you should
implement a function named theme_(value of #theme). using form_alter hook
you can define theme functions for any part of the user edit form.
On 9/26/06, Dave Cohen <drupal at dave-cohen.com> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20060926/9c2a601a/attachment.htm
More information about the development
mailing list