The documentation for search_form() says the return value is 'An HTML string containing the search form' but it actually returns a form array.

Comments

It would be possible to use the d7 documentation "A Form API array for the search form."

Yes, the D7 version should be used, for consistency. Thanks for reporting.

Title:Documentation problem with search_formsearch_form doc has wrong return value information
Issue tags:+Novice

good project for a novice doc contributor

Status:Active» Needs review
StatusFileSize
new492 bytes

Have a patch.

Status:Needs review» Needs work

This patch doesn't apply - badly formatted at the top with "search_old.module".

Other than that, looks good...

Status:Needs work» Needs review
StatusFileSize
new515 bytes

I hope the two extra lines Git created at the top don't mess things up. New patch attached.

Status:Needs review» Reviewed & tested by the community

Looks good, thanks!

Status:Reviewed & tested by the community» Fixed

Thanks, committed.

Status:Fixed» Closed (fixed)
Issue tags:-Novice

Automatically closed -- issue fixed for 2 weeks with no activity.