Index: mailchimp.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mailchimp/mailchimp.module,v
retrieving revision 1.2.2.1.2.3.2.8.2.62
diff -u -p -r1.2.2.1.2.3.2.8.2.62 mailchimp.module
--- mailchimp.module	12 Jul 2010 17:16:03 -0000	1.2.2.1.2.3.2.8.2.62
+++ mailchimp.module	20 Jul 2010 14:05:18 -0000
@@ -542,24 +542,30 @@ function _mailchimp_subscribe_anon_form(
 
   // present interest groups
   if ($intgroup = $q->listInterestGroups($list->id)) {
-    switch ($intgroup['form_field']) {
+    $form['INTERESTS'] = array(
+      '#title' => $intgroup['name'],
+    );
+    
+    $multiple_types = array(
+      'radio' => 'radios',
+      'checkbox' => 'checkboxes',
+    );
+
+    foreach ((array)$intgroup['groups'] as $group) {
+      $options[$group] = $group;
+    }
+
+    switch($intgroup['form_field']) {
       case 'radio':
-        $field_type = 'radios';
-        break;
       case 'checkbox':
-        $field_type = 'checkboxes';
+        $form['INTERESTS']['#type'] = $multiple_types[$intgroup['form_field']];
+        $form['INTERESTS']['#options'] = $options;
         break;
       default:
-        $field_type = $intgroup['form_field'];
-    }
-    foreach ((array)$intgroup['groups'] as $group) {
-      $options[$group] = $group;
+        $form['INTERESTS']['#type'] = $intgroup['form_field'];
+        $form['INTERESTS']['#default_value'] = array_shift($options);
+        break;
     }
-    $form['INTERESTS'] = array(
-      '#type'           => $field_type,
-      '#title'          => $intgroup['name'],
-      '#options'        => $options
-    );
   }
 }
 
