Index: form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.7
diff -u -r1.7 form.inc
--- form.inc	26 Oct 2005 01:25:01 -0000	1.7
+++ form.inc	28 Oct 2005 14:53:46 -0000
@@ -602,7 +602,7 @@
     }
     foreach ($element['#options'] as $key => $choice) {
       if (!isset($element[$key])) {
-        $element[$key] = array('#type' => 'checkbox', '#processed' => TRUE, '#title' => $choice, '#default_value' => in_array($key, $value), '#attributes' => $element['#attributes']);
+        $element[$key] = array('#type' => 'checkbox', '#processed' => TRUE, '#title' => $choice, '#return_value'=>$key, '#default_value' => in_array($key, $value), '#attributes' => $element['#attributes']);
       }
     }
   }
