From f85a37c3076a3145aa291439b713e33825adfd83 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 4 Oct 2010 18:00:46 +0000 Subject: - Patch #140783 by sun, chx, effulgentsia, David_Rothstein, webchick: a select list without #default_value() always passes form validation. --- modules/field_ui/field_ui.admin.inc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'modules/field_ui') diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc index 8a7f04340..3ba38d81b 100644 --- a/modules/field_ui/field_ui.admin.inc +++ b/modules/field_ui/field_ui.admin.inc @@ -335,7 +335,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle 'parent_wrapper' => array( 'parent' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $table['#parent_options'], '#attributes' => array('class' => array('field-parent')), '#parents' => array('fields', $name, 'parent'), @@ -402,7 +401,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle 'parent_wrapper' => array( 'parent' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $table['#parent_options'], '#attributes' => array('class' => array('field-parent')), '#parents' => array('fields', $name, 'parent'), @@ -458,7 +456,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle 'parent_wrapper' => array( 'parent' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $table['#parent_options'], '#attributes' => array('class' => array('field-parent')), '#prefix' => '
 
', @@ -482,7 +479,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle ), 'type' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $field_type_options, '#empty_option' => t('- Select a field type -'), '#description' => t('Type of data to store.'), @@ -491,7 +487,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle ), 'widget_type' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $widget_type_options, '#empty_option' => t('- Select a widget -'), '#description' => t('Form element to edit the data.'), @@ -530,7 +525,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle 'parent_wrapper' => array( 'parent' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $table['#parent_options'], '#attributes' => array('class' => array('field-parent')), '#prefix' => '
 
', @@ -544,7 +538,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle ), 'field_name' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $existing_field_options, '#empty_option' => t('- Select an existing field -'), '#description' => t('Field to share'), @@ -554,7 +547,6 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle ), 'widget_type' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $widget_type_options, '#empty_option' => t('- Select a widget -'), '#description' => t('Form element to edit the data.'), @@ -897,7 +889,6 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund 'parent_wrapper' => array( 'parent' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $table['#parent_options'], '#attributes' => array('class' => array('field-parent')), '#parents' => array('fields', $name, 'parent'), @@ -1051,7 +1042,6 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund 'parent_wrapper' => array( 'parent' => array( '#type' => 'select', - '#required' => FALSE, '#options' => $table['#parent_options'], '#attributes' => array('class' => array('field-parent')), '#parents' => array('fields', $name, 'parent'), @@ -1713,7 +1703,6 @@ function field_ui_field_edit_form($form, &$form_state, $instance) { '#default_value' => !empty($instance['description']) ? $instance['description'] : '', '#rows' => 5, '#description' => t('Instructions to present to the user below this field on the editing form.
Allowed HTML tags: @tags', array('@tags' => _field_filter_xss_display_allowed_tags())), - '#required' => FALSE, '#weight' => 0, ); -- cgit v1.2.3