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

jhodgdon - October 19, 2009 - 17:40
Version:6.x-dev» 7.x-dev

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

jhodgdon - October 22, 2009 - 15:46
Status:active» needs review

Here's a patch for Drupal 7. Should be ported to Drupal 6 if accepted.

AttachmentSizeStatusTest resultOperations
606796.patch1.31 KBIdlePassed: 14429 passes, 0 fails, 0 exceptionsView details | Re-test

#3

Dries - October 23, 2009 - 01:07
Version:7.x-dev» 6.x-dev
Status:needs review» needs work

Committed to CVS HEAD. Moving to D6 so we can reroll for D6.

#4

jhodgdon - October 23, 2009 - 14:25
Status:needs work» needs review

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...

AttachmentSizeStatusTest resultOperations
606796-D6.patch1.68 KBIgnoredNoneNone
 
 

Drupal is a registered trademark of Dries Buytaert.