[development] Should theme_form() called when 'render element' => form?

E.J. Zufelt lists at zufelt.ca
Tue Sep 20 13:54:32 UTC 2011

Good morning,

I have been working on http://drupal.org/node/1269734 and have found that one form in Core doesn't seem to get passed through theme_form.

search_block_form has a theme hook set in search_theme().  The hook sets the template to search-block-form.tpl.php, and sets the render element as 'form'.

This appears to create the following markup:

1. The <form> wrapper (which does not appear to be themed with theme_form().

2. The contents from search-block-form.tpl.php

3. The children of the form, printed in search-block-form.tpl.php, from the $search_form variable, defined in template_preprocess_search_block_form()

Is it right to expect that the form element is not passed through theme_form() when it is rendered in this way, or is this a bug?

Everett Zufelt

Follow me on Twitter

View my LinkedIn Profile

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110920/d79696b0/attachment.html 

More information about the development mailing list