Skip to content
Snippets Groups Projects
Commit 0161d941 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #714480 by tstoeckler: boolean fields should not be able to have a select list as widget.

parent 86dc8b4b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -35,7 +35,7 @@ function list_field_info() {
'label' => t('Boolean'),
'description' => t('This field stores simple on/off or yes/no options.'),
'settings' => array('allowed_values' => '', 'allowed_values_function' => ''),
'default_widget' => 'options_select',
'default_widget' => 'options_buttons',
'default_formatter' => 'list_default',
),
'list_number' => array(
......@@ -296,7 +296,7 @@ function list_field_is_empty($item, $field) {
*/
function list_field_widget_info_alter(&$info) {
$widgets = array(
'options_select' => array('list', 'list_text', 'list_number', 'list_boolean'),
'options_select' => array('list', 'list_text', 'list_number'),
'options_buttons' => array('list', 'list_text', 'list_number', 'list_boolean'),
'options_onoff' => array('list_boolean'),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment