Documentation inaccuracy with filter_form
linclark - October 16, 2009 - 21:02
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
| Issue tags: | Novice |
Description
The return value is documented as "HTML for the form element", but it would seem that it returns an array that is an abstract representation of an HTML form element, not the HTML itself

#1
Good catch! This is wrong in both Drupal 7 http://api.drupal.org/api/function/filter_form/7 and Drupal 6 http://api.drupal.org/api/function/filter_form/6 and should be fixed in Drupal 7 first, then the fix should be backported to Drupal 6.
#2
Here's a patch for Drupal 7. Should be ported to Drupal 6 if accepted.
#3
Committed to CVS HEAD. Moving to D6 so we can reroll for D6.
#4
Here's a doc patch for Drupal 6. Since the original doc for D6 has a see also to a validation function, I decided that validation function needed a doc header as well...