summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-13 20:03:11 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-13 20:03:11 +0000
commitd7dbb49ae2f77110abecba9896e6ad7b13025975 (patch)
tree121c6193ac5cc89c320319773ddf2f1cc53b7477 /modules
parent5bda765a7566cabbe91926d1411580be96307163 (diff)
downloadbrdo-d7dbb49ae2f77110abecba9896e6ad7b13025975.tar.gz
brdo-d7dbb49ae2f77110abecba9896e6ad7b13025975.tar.bz2
- Patch #658692 by Arancaytar: fixed documentation of hook_filter_info().
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.api.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/filter/filter.api.php b/modules/filter/filter.api.php
index d4dea754a..105f55810 100644
--- a/modules/filter/filter.api.php
+++ b/modules/filter/filter.api.php
@@ -81,17 +81,18 @@
* in $filter->settings.
*
* 'settings callback' is invoked with the following arguments (most filter
- * implementations will only need the first 3):
+ * implementations will only need $form_state, $filter and $defaults):
+ * - $form: The prepopulated form array, which will usually have no use here.
* - &$form_state: The form state of the (entire) configuration form.
* - $filter: The filter object containing settings for the given format.
+ * - $format: The format object being configured.
* - $defaults: The default settings for the filter, as defined in 'default
* settings' in hook_filter_info().
- * - $format: The format object being configured.
* - $filters: Complete list of filter objects that are enabled for the given
* format.
*
* @code
- * function mymodule_filter_settings($form, &$form_state, $filter, $defaults) {
+ * function mymodule_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters) {
* $settings['mymodule_url_length'] = array(
* '#type' => 'textfield',
* '#title' => t('Maximum link text length'),