diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php index 4a17fe7..a1f204a 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php @@ -36,7 +36,6 @@ public function buildOptionsForm(&$form, &$form_state) { '#title' => t('Use destination'), '#description' => t('Add destination to the link'), '#default_value' => $this->options['destination'], - '#fieldset' => 'more', ); } diff --git a/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php b/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php index 0477096..a3402f6 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php +++ b/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php @@ -353,7 +353,6 @@ public function buildOptionsForm(&$form, &$form_state) { '#options' => drupal_map_assoc($column_names), '#default_value' => $this->options['click_sort_column'], '#description' => t('Used by Style: Table to determine the actual column to click sort the field on. The default is usually fine.'), - '#fieldset' => 'more', ); } diff --git a/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php b/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php index 32456fa..77afbe8 100644 --- a/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php +++ b/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php @@ -58,7 +58,6 @@ public function buildOptionsForm(&$form, &$form_state) { '#type' => 'checkbox', '#title' => t('Check for new comments as well'), '#default_value' => !empty($this->options['comments']), - '#fieldset' => 'more', ); } } diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php index f3074fb..ba2bb12 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php @@ -47,20 +47,23 @@ protected function defineOptions() { return $options; } + /** + * Overrides \Drupal\user\Plugin\views\field\User::buildOptionsForm(). + */ public function buildOptionsForm(&$form, &$form_state) { + parent::buildOptionsForm($form, $form_state); + $form['format_username'] = array( '#title' => t('Use formatted username'), '#type' => 'checkbox', '#default_value' => !empty($this->options['format_username']), '#description' => t('If checked, the username will be formatted by the system. If unchecked, it will be displayed raw.'), - '#fieldset' => 'more', ); $form['overwrite_anonymous'] = array( '#title' => t('Overwrite the value to display for anonymous users'), '#type' => 'checkbox', '#default_value' => !empty($this->options['overwrite_anonymous']), '#description' => t('Enable to display different text for anonymous users.'), - '#fieldset' => 'more', ); $form['anonymous_text'] = array( '#title' => t('Text to display for anonymous users'), @@ -71,10 +74,7 @@ public function buildOptionsForm(&$form, &$form_state) { ':input[name="options[overwrite_anonymous]"]' => array('checked' => TRUE), ), ), - '#fieldset' => 'more', ); - - parent::buildOptionsForm($form, $form_state); } function render_link($data, $values) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Null.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Null.php index 6097b00..65b0a00 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Null.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Null.php @@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#title' => t('Fail basic validation if any argument is given'), '#default_value' => !empty($this->options['must_not_be']), '#description' => t('By checking this field, you can use this to make sure views with more arguments than necessary fail validation.'), - '#fieldset' => 'more', + '#fieldset' => 'argument_present', ); unset($form['exception']); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php index f48dbdf..9f887ef 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php @@ -60,12 +60,20 @@ protected function defineOptions() { public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); + $form['string_settings'] = array( + '#type' => 'details', + '#title' => t('String settings'), + '#collapsible' => TRUE, + '#collapsed' => TRUE, + '#weight' => 150, + ); + $form['glossary'] = array( '#type' => 'checkbox', '#title' => t('Glossary mode'), '#description' => t('Glossary mode applies a limit to the number of characters used in the filter value, which allows the summary view to act as a glossary.'), '#default_value' => $this->options['glossary'], - '#fieldset' => 'more', + '#fieldset' => 'string_settings', ); $form['limit'] = array( @@ -78,7 +86,7 @@ public function buildOptionsForm(&$form, &$form_state) { ':input[name="options[glossary]"]' => array('checked' => TRUE), ), ), - '#fieldset' => 'more', + '#fieldset' => 'string_settings', ); $form['case'] = array( @@ -93,7 +101,7 @@ public function buildOptionsForm(&$form, &$form_state) { 'ucwords' => t('Capitalize each word'), ), '#default_value' => $this->options['case'], - '#fieldset' => 'more', + '#fieldset' => 'string_settings', ); $form['path_case'] = array( @@ -108,14 +116,14 @@ public function buildOptionsForm(&$form, &$form_state) { 'ucwords' => t('Capitalize each word'), ), '#default_value' => $this->options['path_case'], - '#fieldset' => 'more', + '#fieldset' => 'string_settings', ); $form['transform_dash'] = array( '#type' => 'checkbox', '#title' => t('Transform spaces to dashes in URL'), '#default_value' => $this->options['transform_dash'], - '#fieldset' => 'more', + '#fieldset' => 'string_settings', ); if (!empty($this->definition['many to one'])) { @@ -141,7 +149,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#title' => t('Allow multiple values'), '#description' => t('If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'), '#default_value' => !empty($this->options['break_phrase']), - '#fieldset' => 'more', + '#fieldset' => 'string_settings', ); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php index b737cc7..94c3f4b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php @@ -526,7 +526,6 @@ public function buildExposeForm(&$form, &$form_state) { ':input[name="options[expose][use_operator]"]' => array('checked' => TRUE), ), ), - '#fieldset' => 'more', ); } else { @@ -571,7 +570,6 @@ public function buildExposeForm(&$form, &$form_state) { '#title' => t('Filter identifier'), '#size' => 40, '#description' => t('This will appear in the URL after the ? to identify this filter. Cannot be blank.'), - '#fieldset' => 'more', ); } @@ -828,7 +826,6 @@ function build_group_form(&$form, &$form_state) { '#title' => t('Filter identifier'), '#size' => 40, '#description' => t('This will appear in the URL after the ? to identify this filter. Cannot be blank.'), - '#fieldset' => 'more', ); $form['group_info']['label'] = array( '#type' => 'textfield', @@ -883,7 +880,6 @@ function build_group_form(&$form, &$form_state) { '#title' => t('Filter identifier'), '#size' => 40, '#description' => t('This will appear in the URL after the ? to identify this filter. Cannot be blank.'), - '#fieldset' => 'more', ); $form['group_info']['label'] = array( '#type' => 'textfield',