Download & Extend

Documentation inaccuracy with filter_form

Project:Drupal core
Version:6.x-dev
Component:documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Novice

Issue Summary

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

Comments

#1

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

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

#3

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

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 KBIgnored: Check issue status.NoneNone

#5

Status:needs review» needs work

+++ modules/filter/filter.module 23 Oct 2009 14:24:23 -0000
@@ -470,18 +470,23 @@
+ * @see filter_form_validate().
  *
- * @ingroup forms
- * @see filter_form_validate()
  * @param $value
[...]
+ *
+ * @ingroup forms

Nit-pick: The @see should probably move back down beneath the @ingroup, unless I've missed some code style discussion. :x

#6

Status:needs work» needs review

Fair enough. Here's a redo.

AttachmentSizeStatusTest resultOperations
606796-D6-movesee.patch1.67 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 606796-D6-movesee.patch.View details

#7

I just noticed an extra space. Try this patch instead.

AttachmentSizeStatusTest resultOperations
606796-D6-fixspace.patch1.67 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 606796-D6-fixspace.patch.View details

#8

Status:needs review» reviewed & tested by the community

Looks good to me.

#9

Status:reviewed & tested by the community» fixed

Thanks, committed.

#10

Status:fixed» closed (fixed)

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

nobody click here