Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The documentation for search_form() says the return value is 'An HTML string containing the search form' but it actually returns a form array.
Comment | File | Size | Author |
---|---|---|---|
#6 | search_form_doc-926440-new-D6.patch | 515 bytes | daniels220 |
#4 | search_form_doc-926440-D6.patch | 492 bytes | daniels220 |
Comments
Comment #1
dawehnerIt would be possible to use the d7 documentation "A Form API array for the search form."
Comment #2
jhodgdonYes, the D7 version should be used, for consistency. Thanks for reporting.
Comment #3
jhodgdongood project for a novice doc contributor
Comment #4
daniels220 CreditAttribution: daniels220 commentedHave a patch.
Comment #5
jhodgdonThis patch doesn't apply - badly formatted at the top with "search_old.module".
Other than that, looks good...
Comment #6
daniels220 CreditAttribution: daniels220 commentedI hope the two extra lines Git created at the top don't mess things up. New patch attached.
Comment #7
jhodgdonLooks good, thanks!
Comment #8
Gábor HojtsyThanks, committed.