There is now a required "type" attribute for each filter; the hook documentation should reflect this.

Type is one of the following as near as I can tell:

FILTER_TYPE_HTML_RESTRICTOR HTML tag and attribute restricting filters.
FILTER_TYPE_MARKUP_LANGUAGE Non-HTML markup language filters that generate HTML.
FILTER_TYPE_TRANSFORM_IRREVERSIBLE Irreversible transformation filters.
FILTER_TYPE_TRANSFORM_REVERSIBLE Reversible transformation filters.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cburschka’s picture

Status: Active » Needs review
FileSize
1.69 KB

Patch.

cburschka’s picture

Whitespace

jhodgdon’s picture

Status: Needs review » Needs work

Thanks! Your logic appears to be correct, based on what I can see in the Core implementations of this hook, and the constants defined in filter.module.

Can you make the list of filter types in the parameter into a bullet list that shows what each option does? See
http://drupal.org/node/1354#lists
for nested-list syntax. The definitions of the constants are at the bottom of this page:
http://api.drupal.org/api/drupal/core!modules!filter!filter.module/8

cburschka’s picture

Status: Needs work » Needs review
FileSize
1.91 KB

This should do it. (The linebreaks look a bit weird, but I'm guessing that comment blocks are supposed to break at c:80.)

jhodgdon’s picture

Status: Needs review » Fixed

Perfect! You'll get used to the line breaks if you do some more core API docs patches. This and other standards are listed on:
http://drupal.org/coding-standards/docs
And to find more issues to work on, look in the "documentation" component of Drupal Core.

Meanwhile -- thanks for the patch! Committed to 8.x.

Status: Fixed » Closed (fixed)

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