diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-30 06:04:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-30 06:04:09 +0000 |
commit | 859d158d4550e9972f305413b2fba0253a03675e (patch) | |
tree | 6a579b04cde0491a37c2fa4c916676a41889f8c3 | |
parent | d95de3c11dcef9cbc4fa6a7b3bf2c68f7189f0b2 (diff) | |
download | brdo-859d158d4550e9972f305413b2fba0253a03675e.tar.gz brdo-859d158d4550e9972f305413b2fba0253a03675e.tar.bz2 |
- Patch #563272 by David_Rothstein: renamed parameter for readability.
-rw-r--r-- | modules/filter/filter.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index cfdaa5a77..0eecb3083 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -590,7 +590,7 @@ function check_markup($text, $format = FILTER_FORMAT_DEFAULT, $langcode = '', $c * Generate a selector for choosing a format in a form. * * @ingroup forms - * @param $value + * @param $selected_format * The ID of the format that is currently selected. * @param $weight * The weight of the text format. @@ -599,8 +599,8 @@ function check_markup($text, $format = FILTER_FORMAT_DEFAULT, $langcode = '', $c * @return * HTML for the form element. */ -function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = NULL, $parents = array('format')) { - $value = filter_resolve_format($value); +function filter_form($selected_format = FILTER_FORMAT_DEFAULT, $weight = NULL, $parents = array('format')) { + $selected_format = filter_resolve_format($selected_format); $formats = filter_formats(); drupal_add_js('misc/form.js'); @@ -627,7 +627,7 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = NULL, $parents = '#type' => 'select', '#title' => t('Text format'), '#options' => $options, - '#default_value' => $value, + '#default_value' => $selected_format, '#parents' => $parents, '#access' => count($formats) > 1, '#id' => $element_id, |