[development] theming in D7
ufuk bayburt
ufukbay at gmail.com
Sun Oct 24 17:53:33 UTC 2010
On Sun, Oct 24, 2010 at 7:45 PM, Bob Hutchinson <hutchlists at midwales.com>wrote:
>
> I ran some trials using form_example from
> http://drupal.org/project/examples
> I found that indeed I should not use drupal_render() inside theme
> functions,
> drupal_render_children() works fine.
>
It's ok to use drupal_render on $form's sub-elements inside $form's theme
function, however you can not use it on the $form array as it causes an
infinite loop.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20101024/ea6b37d9/attachment.html
More information about the development
mailing list