### Eclipse Workspace Patch 1.0
#P webform
Index: components/select.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/components/select.inc,v
retrieving revision 1.39.2.20
diff -u -r1.39.2.20 select.inc
--- components/select.inc	10 Sep 2010 17:41:17 -0000	1.39.2.20
+++ components/select.inc	27 Sep 2010 18:00:08 -0000
@@ -22,6 +22,7 @@
       'items' => '',
       'multiple' => NULL,
       'aslist' => NULL,
+      'title_display' => 0,
       'optrand' => 0,
       'other_option' => NULL,
       'other_text' => t('Other...'),
@@ -163,6 +164,15 @@
     '#description' => t('Check this option if you want the select component to be of listbox type instead of radio buttons or checkboxes.'),
     '#parents' => array('extra', 'aslist'),
   );
+  $form['display']['title_display'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Hide the title'),
+    '#default_value' => $component['extra']['title_display'],
+    '#return_value' => 'none',
+    '#description' => t('This hides the title of the form component when they are displayed in the form.'),
+    '#parents' => array('extra', 'title_display'),
+  );
+
   $form['display']['optrand'] = array(
     '#type' => 'checkbox',
     '#title' => t('Randomize options'),
@@ -355,6 +365,10 @@
     }
   }
 
+  // Required to implement the #title_display option.
+  $element['#pre_render'] = array('_webform_client_form_title_display');
+  $element['#title_display'] = empty($component['extra']['title_display']) ? NULL : $component['extra']['title_display'];
+
   $element['#prefix'] = '<div class="webform-component webform-component-' . $element['#type'] . '" id="webform-component-' . $component['form_key'] . '">';
   $element['#suffix'] = '</div>';
 
Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.196.2.54
diff -u -r1.196.2.54 webform.module
--- webform.module	8 Sep 2010 05:23:47 -0000	1.196.2.54
+++ webform.module	27 Sep 2010 18:00:06 -0000
@@ -1500,6 +1500,13 @@
   return $form;
 }
 
+function _webform_client_form_title_display($element) {
+  if (isset($element['#title_display']) && $element['#title_display'] === 'none') {
+    $element['#title'] = NULL;
+  }
+  return $element;
+}
+
 /**
  * Check if a component should be displayed on the current page.
  */
