Index: modules/filter/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.286
diff -u -p -r1.286 filter.module
--- modules/filter/filter.module	29 Aug 2009 03:55:44 -0000	1.286
+++ modules/filter/filter.module	29 Aug 2009 18:49:02 -0000
@@ -590,7 +590,7 @@ function check_markup($text, $format = F
  * 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 = F
  * @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_FOR
     '#type' => 'select',
     '#title' => t('Text format'),
     '#options' => $options,
-    '#default_value' => $value,
+    '#default_value' => $selected_format,
     '#parents' => $parents,
     '#access' => count($formats) > 1,
     '#id' => $element_id,
