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.
API lists the arguments passed to 'settings callback' variously as "form_state, filter, defaults, format, filters" or "form, form_state, filter, defaults".
The correct argument order, as seen in filter.module's own code, is "form, form_state, filter, format, defaults". (Try to say that fast. ;) )
As this is a hook documentation, the patch will not need to be committed by a maintainer.
Comment | File | Size | Author |
---|---|---|---|
#1 | filter-hook_filter_info-docs-658692-1.patch | 1.44 KB | cburschka |
Comments
Comment #1
cburschkaEh, my info is out of date - D7's hooks are tucked safely into core in $module.api.php files.
So here is a core patch.
Comment #3
cburschkaThis patch changes only a comment section. :(
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!