Drop-down select instead of selection box in custom field widget I am creating a custom field for phone numbers. The field creates a phone record that contains the type of phone contact (work, home, etc), as well as the number and an extension... much like Apple's "Contacts" app.

The problem I am having is for the phone type drop-down list. Instead of showing a nice drop-down select list like this example of a publishing status...



I end up with a selection box like this...



Here is what my hook_field_widget_info() looks like...

/**
 * Implements hook_field_widget_form().
 */
function MYMODULE_field_widget_form(&amp;$form, &amp;$form_state, $field, $instance, $langcode, $items, $delta, $element) {

  $element['label'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; drupal_map_assoc(array(
      t('home'),
      t('work'),
      t('main'),
      t('mobile'),
      t('other'),
    )),
    '#size' =&gt; 12,
    '#default_value' =&gt; isset($items[$delta]['label']) ? $items[$delta]['label'] : 'home',
  );

  $element['number'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Number'),
    '#size' =&gt; 16,
    '#default_value' =&gt; isset($items[$delta]['number']) ? $items[$delta]['number'] : '',
  );

  $element['ext'] = array(
    '#type' =&gt; 'textfield',
    '#field_prefix' =&gt; t('ext'),
    '#size' =&gt; 6,
    '#default_value' =&gt; isset($items[$delta]['ext']) ? $items[$delta]['ext'] : '',
  );

  $element['primary'] = array(
    '#type' =&gt; 'ckeckbox',
    '#default_value' =&gt; isset($items[$delta]['primary']) ? $items[$delta]['primary'] : 0,
    '#return_value' =&gt; 1,
  );

  return $element;
}


I can see how the selection box style select element can be useful for multiple selects, but this is just a single select. I'd like to see a drop-down element. I must be missing something here, but I haven't figured out what it could be. Any ideas?
Okay, I figured it out and it was much easier than I thought... It's the "size" attribute. I deleted the size attribute, ('#size' => 12,), and I have a drop-down select list. I suppose it just came to posting the question here for me to figure it out on my own. :P