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

"E.J. Zufelt" <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <[email protected]>
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?

Thanks,
Everett Zufelt
http://zufelt.ca

Follow me on Twitter
http://twitter.com/ezufelt

View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.