Commit c4e52bb6 authored by alexpott's avatar alexpott

Issue #1892182 by nod_: #type details: Rename #collapsed to #open.

parent 686a2ef6
......@@ -2859,8 +2859,8 @@ function form_get_options($element, $key) {
* @param $variables
* An associative array containing:
* - element: An associative array containing the properties of the element.
* Properties used: #attributes, #children, #collapsed, #description, #id,
* #title, #value.
* Properties used: #attributes, #children, #description, #id, #title,
* #value.
*
* @ingroup themeable
*/
......@@ -2905,8 +2905,8 @@ function theme_fieldset($variables) {
* @param $variables
* An associative array containing:
* - element: An associative array containing the properties of the element.
* Properties used: #attributes, #children, #collapsed, #description, #id,
* #title, #value.
* Properties used: #attributes, #children, #description, #id, #title,
* #value.
*
* @ingroup themeable
*/
......@@ -2923,7 +2923,7 @@ function theme_details($variables) {
if (!empty($element['#attributes']['id'])) {
$summary_attributes['aria-controls'] = $element['#attributes']['id'];
}
$summary_attributes['aria-expanded'] = empty($element['#attributes']['open']) ? FALSE : TRUE;
$summary_attributes['aria-expanded'] = !empty($element['#attributes']['open']);
$summary_attributes['aria-pressed'] = $summary_attributes['aria-expanded'];
$output .= '<summary' . $summary_attributes . '>' . $element['#title'] . '</summary>';
}
......@@ -3930,7 +3930,7 @@ function form_pre_render_details($element) {
// Collapsible details.
$element['#attached']['library'][] = array('system', 'drupal.collapse');
if (empty($element['#collapsed'])) {
if (!empty($element['#open'])) {
$element['#attributes']['open'] = 'open';
}
......
......@@ -233,7 +233,6 @@ public function getFormOptions($database) {
$form['advanced_options'] = array(
'#type' => 'details',
'#title' => st('Advanced options'),
'#collapsed' => TRUE,
'#description' => st("These options are only necessary for some sites. If you're not sure what you should enter here, leave the default settings or check with your hosting provider."),
'#weight' => 10,
);
......
......@@ -408,7 +408,6 @@ public function getSettingsForm() {
$form['advanced'] = array(
'#type' => 'details',
'#title' => t('Advanced settings'),
'#collapsed' => TRUE,
);
$form['advanced']['hostname'] = array(
'#type' => 'textfield',
......
......@@ -131,7 +131,7 @@ public function buildForm(array $form, array &$form_state) {
'#type' => 'details',
'#title' => t('Basic configuration'),
'#description' => t('For most aggregation tasks, the default settings are fine.'),
'#collapsed' => FALSE,
'#open' => TRUE,
);
$form['basic_conf'] += $basic_conf;
}
......
......@@ -45,7 +45,7 @@ public function settingsForm(array $form, array &$form_state) {
'#type' => 'details',
'#title' => t('Default processor settings'),
'#description' => $info['description'],
'#collapsed' => !in_array($info['id'], $processors),
'#open' => in_array($info['id'], $processors),
);
}
......
......@@ -38,7 +38,7 @@ public function settingsForm(array $form, array &$form_state) {
'#type' => 'details',
'#title' => t('Test processor settings'),
'#description' => $info['description'],
'#collapsed' => !in_array($info['id'], $processors),
'#open' => in_array($info['id'], $processors),
);
// Add some dummy settings to verify settingsForm is called.
$form['processors'][$info['id']]['dummy_length'] = array(
......
......@@ -94,7 +94,7 @@ public function form(array $form, array &$form_state) {
'#title' => t('Revision information'),
'#collapsible' => TRUE,
// Collapsed by default when "Create new revision" is unchecked.
'#collapsed' => !$block->isNewRevision(),
'#open' => $block->isNewRevision(),
'#group' => 'advanced',
'#attributes' => array(
'class' => array('custom-block-form-revision-information'),
......
......@@ -56,8 +56,6 @@ public function form(array $form, array &$form_state) {
$form['language'] = array(
'#type' => 'details',
'#title' => t('Language settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#group' => 'additional_settings',
);
......
......@@ -58,7 +58,6 @@ public function form(array $form, array &$form_state) {
$form['visibility']['path'] = array(
'#type' => 'details',
'#title' => t('Pages'),
'#collapsed' => TRUE,
'#group' => 'visibility',
'#weight' => 0,
);
......@@ -121,7 +120,6 @@ public function form(array $form, array &$form_state) {
$form['visibility']['language'] = array(
'#type' => 'details',
'#title' => t('Languages'),
'#collapsed' => TRUE,
'#group' => 'visibility',
'#weight' => 5,
);
......@@ -154,7 +152,6 @@ public function form(array $form, array &$form_state) {
$form['visibility']['role'] = array(
'#type' => 'details',
'#title' => t('Roles'),
'#collapsed' => TRUE,
'#group' => 'visibility',
'#weight' => 10,
);
......
......@@ -416,7 +416,6 @@ function _book_add_form_elements(&$form, &$form_state, EntityInterface $node) {
'#type' => 'details',
'#title' => t('Book outline'),
'#weight' => 10,
'#collapsed' => TRUE,
'#group' => 'advanced',
'#attributes' => array(
'class' => array('book-outline-form'),
......
......@@ -993,7 +993,6 @@ function comment_form_node_type_form_alter(&$form, $form_state) {
$form['comment'] = array(
'#type' => 'details',
'#title' => t('Comment settings'),
'#collapsed' => TRUE,
'#group' => 'additional_settings',
'#attributes' => array(
'class' => array('comment-node-type-settings-form'),
......@@ -1099,7 +1098,6 @@ function comment_form_node_form_alter(&$form, $form_state) {
'#type' => 'details',
'#access' => user_access('administer comments'),
'#title' => t('Comment settings'),
'#collapsed' => TRUE,
'#group' => 'advanced',
'#attributes' => array(
'class' => array('comment-node-settings-form'),
......
......@@ -54,7 +54,6 @@ public function form(array $form, array &$form_state) {
$form['author'] += array(
'#type' => 'details',
'#title' => t('Administration'),
'#collapsed' => TRUE,
);
}
......
......@@ -230,7 +230,7 @@ function dblog_filter_form($form) {
$form['filters'] = array(
'#type' => 'details',
'#title' => t('Filter log messages'),
'#collapsed' => empty($_SESSION['dblog_overview_filter']),
'#open' => !empty($_SESSION['dblog_overview_filter']),
);
foreach ($filters as $key => $filter) {
$form['filters']['status'][$key] = array(
......@@ -307,7 +307,6 @@ function dblog_clear_log_form($form) {
'#type' => 'details',
'#title' => t('Clear log messages'),
'#description' => t('This will permanently remove the log messages from the database.'),
'#collapsed' => TRUE,
);
$form['dblog_clear']['clear'] = array(
'#type' => 'submit',
......
......@@ -460,7 +460,6 @@ function multiple_options_form(&$form, &$form_state) {
$form['multiple_field_settings'] = array(
'#type' => 'details',
'#title' => t('Multiple field settings'),
'#collapsed' => TRUE,
'#weight' => 5,
);
......
......@@ -352,7 +352,6 @@ public function buildForm(array $form, array &$form_state, $entity_type = NULL,
$form['modes'] = array(
'#type' => 'details',
'#title' => t('Custom display settings'),
'#collapsed' => TRUE,
);
// Collect options and default values for the 'Custom display settings'
// checkboxes.
......
......@@ -617,7 +617,6 @@ function language_negotiation_configure_browser_form($form, &$form_state) {
$form['new_mapping'] = array(
'#type' => 'details',
'#title' => t('Add a new mapping'),
'#collapsed' => TRUE,
'#tree' => TRUE,
);
$form['new_mapping']['browser_langcode'] = array(
......
......@@ -177,7 +177,6 @@ function locale_translate_export_form($form, &$form_state) {
$form['content_options'] = array(
'#type' => 'details',
'#title' => t('Export options'),
'#collapsed' => TRUE,
'#tree' => TRUE,
'#states' => array(
'invisible' => array(
......
......@@ -170,7 +170,7 @@ function locale_translate_filter_form($form, &$form_state) {
$form['filters'] = array(
'#type' => 'details',
'#title' => t('Filter translatable strings'),
'#collapsed' => FALSE,
'#open' => TRUE,
);
foreach ($filters as $key => $filter) {
// Special case for 'string' filter.
......
......@@ -569,7 +569,7 @@ function menu_form_node_form_alter(&$form, $form_state) {
'#type' => 'details',
'#title' => t('Menu settings'),
'#access' => user_access('administer menu'),
'#collapsed' => !$link['link_title'],
'#open' => !empty($link['link_title']),
'#group' => 'advanced',
'#attached' => array(
'library' => array(array('menu', 'drupal.menu')),
......@@ -669,7 +669,6 @@ function menu_form_node_type_form_alter(&$form, $form_state) {
$form['menu'] = array(
'#type' => 'details',
'#title' => t('Menu settings'),
'#collapsed' => TRUE,
'#attached' => array(
'library' => array(array('menu', 'drupal.menu.admin')),
),
......
......@@ -192,7 +192,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['workflow'] = array(
'#type' => 'details',
'#title' => t('Publishing options'),
'#collapsed' => TRUE,
'#group' => 'additional_settings',
);
$form['workflow']['node_options'] = array('#type' => 'checkboxes',
......@@ -210,7 +209,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['language'] = array(
'#type' => 'details',
'#title' => t('Language settings'),
'#collapsed' => TRUE,
'#group' => 'additional_settings',
);
......@@ -229,7 +227,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['display'] = array(
'#type' => 'details',
'#title' => t('Display settings'),
'#collapsed' => TRUE,
'#group' => 'additional_settings',
);
$form['display']['node_submitted'] = array(
......
......@@ -125,7 +125,7 @@ public function form(array $form, array &$form_state) {
'#group' => 'advanced',
'#title' => t('Revision information'),
// Collapsed by default when "Create new revision" is unchecked.
'#collapsed' => !$node->isNewRevision(),
'#open' => $node->isNewRevision(),
'#attributes' => array(
'class' => array('node-form-revision-information'),
),
......@@ -161,7 +161,6 @@ public function form(array $form, array &$form_state) {
'#type' => 'details',
'#access' => user_access('administer nodes'),
'#title' => t('Authoring information'),
'#collapsed' => TRUE,
'#group' => 'advanced',
'#attributes' => array(
'class' => array('node-form-author'),
......@@ -200,7 +199,6 @@ public function form(array $form, array &$form_state) {
'#type' => 'details',
'#access' => user_access('administer nodes'),
'#title' => t('Promotion options'),
'#collapsed' => TRUE,
'#group' => 'advanced',
'#attributes' => array(
'class' => array('node-form-options'),
......
......@@ -1969,7 +1969,6 @@ function node_form_block_form_alter(&$form, &$form_state) {
$form['visibility']['node_type'] = array(
'#type' => 'details',
'#title' => t('Content types'),
'#collapsed' => TRUE,
'#group' => 'visibility',
'#weight' => 5,
);
......@@ -2249,7 +2248,6 @@ function node_form_search_form_alter(&$form, $form_state) {
$form['advanced'] = array(
'#type' => 'details',
'#title' => t('Advanced search'),
'#collapsed' => TRUE,
'#attributes' => array('class' => array('search-advanced')),
);
$form['advanced']['keywords-fieldset'] = array(
......@@ -2310,10 +2308,9 @@ function node_form_search_form_alter(&$form, $form_state) {
}
if (count($language_options) > 1) {
$form['advanced']['lang-fieldset'] = array(
'#type' => 'fieldset',
'#type' => 'details',
'#title' => t('Languages'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#open' => TRUE,
);
$form['advanced']['lang-fieldset']['language'] = array(
'#type' => 'checkboxes',
......
......@@ -119,7 +119,7 @@ function path_form_node_form_alter(&$form, $form_state) {
$form['path'] = array(
'#type' => 'details',
'#title' => t('URL path settings'),
'#collapsed' => empty($path['alias']),
'#open' => !empty($path['alias']),
'#group' => 'advanced',
'#attributes' => array(
'class' => array('path-form'),
......
......@@ -169,7 +169,7 @@ public function buildForm(array $form, array &$form_state, $test_id = NULL) {
// Set summary information.
$group_summary['#ok'] = $group_summary['#fail'] + $group_summary['#exception'] == 0;
$form['result']['results'][$group]['#collapsed'] = $group_summary['#ok'];
$form['result']['results'][$group]['#open'] = !$group_summary['#ok'];
// Store test group (class) as for use in filter.
$filter[$group_summary['#ok'] ? 'pass' : 'fail'][] = $group;
......
......@@ -46,7 +46,6 @@ public function buildForm(array $form, array &$form_state) {
'#type' => 'details',
'#title' => t('HTTP authentication'),
'#description' => t('HTTP auth settings to be used by the SimpleTest browser during testing. Useful when the site requires basic HTTP authentication.'),
'#collapsed' => TRUE,
);
$form['httpauth']['simpletest_httpauth_method'] = array(
'#type' => 'select',
......
......@@ -41,10 +41,6 @@ public function buildForm(array $form, array &$form_state) {
$form_state['storage']['PHPUnit'] = $groups['PHPUnit'];
foreach ($groups as $group => $tests) {
$form['tests']['table'][$group] = array(
'#collapsed' => TRUE,
);
foreach ($tests as $class => $info) {
$form['tests']['table'][$group][$class] = array(
'#type' => 'checkbox',
......
......@@ -46,8 +46,8 @@ function theme_simpletest_test_table($variables) {
// Select the right "expand"/"collapse" image, depending on whether the
// category is expanded (at least one test selected) or not.
$collapsed = !empty($element['#collapsed']);
$image_index = $collapsed ? 0 : 1;
$open = !empty($element['#open']);
$image_index = $open ? 1 : 0;
// Place-holder for checkboxes to select group of tests.
$row[] = array('id' => $test_class, 'class' => array('simpletest-select-all'));
......@@ -107,7 +107,7 @@ function theme_simpletest_test_table($variables) {
'class' => array('simpletest-test-description'),
);
$rows[] = array('data' => $row, 'class' => array($test_class . '-test', ($collapsed ? 'js-hide' : '')));
$rows[] = array('data' => $row, 'class' => array($test_class . '-test', ($open ? '' : 'js-hide')));
}
$js['simpletest-test-group-' . $test_class] = $current_js;
unset($table[$key]);
......
......@@ -80,10 +80,10 @@ public function buildForm(array $form, array &$form_state) {
$definition = $toolkit->getDefinition();
$form['image_toolkit']['#options'][$id] = $definition['title'];
$form['image_toolkit_settings'][$id] = array(
'#type' => 'fieldset',
'#type' => 'details',
'#title' => t('@toolkit settings', array('@toolkit' => $definition['title'])),
'#collapsible' => TRUE,
'#collapsed' => ($id == $current_toolkit) ? FALSE : TRUE,
'#open' => ($id == $current_toolkit),
'#tree' => TRUE,
);
$form['image_toolkit_settings'][$id] += $toolkit->settingsForm();
......
......@@ -912,6 +912,7 @@ function system_modules($form, $form_state = array()) {
'#type' => 'details',
'#title' => t($package),
'#theme' => 'system_modules_details',
'#open' => TRUE,
'#header' => array(
array('data' => t('<span class="element-invisible">Enabled</span>'), 'class' => array('checkbox')),
array('data' => t('Name'), 'class' => array('name')),
......
......@@ -555,7 +555,7 @@ function system_element_info() {
'#theme_wrappers' => array('fieldset'),
);
$types['details'] = array(
'#collapsed' => FALSE,
'#open' => FALSE,
'#value' => NULL,
'#process' => array('form_process_group', 'ajax_process_form'),
'#pre_render' => array('form_pre_render_details', 'form_pre_render_group'),
......
......@@ -13,7 +13,7 @@ function design_test_form_details($form, &$form_state) {
'#type' => 'details',
'#title' => 'Collapsible details',
'#description' => 'Details description',
'#collapsed' => FALSE,
'#open' => TRUE,
'#states' => array(
'collapsed' => array(
':input[name="states-trigger"]' => array('checked' => TRUE),
......@@ -25,7 +25,6 @@ function design_test_form_details($form, &$form_state) {
'#type' => 'details',
'#title' => 'Collapsed details',
'#description' => 'Details description',
'#collapsed' => TRUE,
);
$form['collapsed']['textfield'] = array(
'#type' => 'textfield',
......@@ -46,19 +45,17 @@ function design_test_form_details($form, &$form_state) {
'#type' => 'details',
'#title' => 'Details',
'#description' => 'Details description',
'#collapsed' => TRUE,
);
$form['collapsed2']['collapsible'] = array(
'#type' => 'details',
'#title' => 'Collapsible details',
'#description' => 'Details description',
'#collapsed' => FALSE,
'#open' => TRUE,
);
$form['collapsed2']['collapsed'] = array(
'#type' => 'details',
'#title' => 'Collapsed details',
'#description' => 'Details description',
'#collapsed' => TRUE,
);
$form['collapsed2']['regular'] = array(
'#type' => 'details',
......
......@@ -19,7 +19,7 @@ function design_test_form_fieldset($form, &$form_state) {
'#type' => 'details',
'#title' => 'Collapsible details',
'#description' => 'Details description',
'#collapsed' => FALSE,
'#open' => TRUE,
);
$form['collapsible']['fieldset'] = array(
'#type' => 'fieldset',
......@@ -40,7 +40,6 @@ function design_test_form_fieldset($form, &$form_state) {
$form['collapsed'] = $form['collapsible'];
$form['collapsed']['#title'] = 'Collapsed details';
$form['collapsed']['#collapsed'] = TRUE;
$form['nested'] = $form['regular'];
$form['nested']['#title'] = 'Parent fieldset';
......
......@@ -54,7 +54,7 @@ public function form(array $form, array &$form_state) {
$form['relations'] = array(
'#type' => 'details',
'#title' => t('Relations'),
'#collapsed' => ($vocabulary->hierarchy != TAXONOMY_HIERARCHY_MULTIPLE),
'#open' => ($vocabulary->hierarchy == TAXONOMY_HIERARCHY_MULTIPLE),
'#weight' => 10,
);
......
......@@ -216,7 +216,7 @@ function translation_form_node_form_alter(&$form, &$form_state) {
'#type' => 'details',
'#title' => t('Translation settings'),
'#access' => translation_user_can_translate_node($node),
'#collapsed' => !$node->translate,
'#open' => $node->translate,
'#tree' => TRUE,
'#weight' => 30,
);
......
......@@ -157,7 +157,6 @@ public function entityFormAlter(array &$form, array &$form_state, EntityInterfac
$form['source_langcode'] = array(
'#type' => 'details',
'#title' => t('Source language: @language', array('@language' => $languages[$source_langcode]->name)),
'#collapsed' => TRUE,
'#tree' => TRUE,
'#weight' => -100,
'#multilingual' => TRUE,
......@@ -225,7 +224,6 @@ public function entityFormAlter(array &$form, array &$form_state, EntityInterfac
$form['translation_entity'] = array(
'#type' => 'details',
'#title' => t('Translation'),
'#collapsed' => TRUE,
'#tree' => TRUE,
'#weight' => 10,
'#access' => $this->getTranslationAccess($entity, $source_langcode ? 'create' : 'update'),
......
......@@ -182,7 +182,7 @@ public function buildForm(array $form, array &$form_state) {
$form['email_admin_created'] = array(
'#type' => 'details',
'#title' => t('Welcome (new user created by administrator)'),
'#collapsed' => ($config->get('register') != USER_REGISTER_ADMINISTRATORS_ONLY),
'#open' => ($config->get('register') == USER_REGISTER_ADMINISTRATORS_ONLY),
'#description' => t('Edit the welcome e-mail messages sent to new member accounts created by an administrator.') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -202,7 +202,7 @@ public function buildForm(array $form, array &$form_state) {
$form['email_pending_approval'] = array(
'#type' => 'details',
'#title' => t('Welcome (awaiting approval)'),
'#collapsed' => ($config->get('register') != USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL),
'#open' => ($config->get('register') == USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL),
'#description' => t('Edit the welcome e-mail messages sent to new members upon registering, when administrative approval is required.') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -222,7 +222,7 @@ public function buildForm(array $form, array &$form_state) {
$form['email_pending_approval_admin'] = array(
'#type' => 'details',
'#title' => t('Admin (user awaiting approval)'),
'#collapsed' => ($config->get('register') != USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL),
'#open' => ($config->get('register') == USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL),
'#description' => t('Edit the e-mail notifying the site administrator that there are new members awaiting administrative approval.') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -242,7 +242,7 @@ public function buildForm(array $form, array &$form_state) {
$form['email_no_approval_required'] = array(
'#type' => 'details',
'#title' => t('Welcome (no approval required)'),
'#collapsed' => ($config->get('register') != USER_REGISTER_VISITORS),
'#open' => ($config->get('register') == USER_REGISTER_VISITORS),
'#description' => t('Edit the welcome e-mail messages sent to new members upon registering, when no administrator approval is required.') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -262,7 +262,6 @@ public function buildForm(array $form, array &$form_state) {
$form['email_password_reset'] = array(
'#type' => 'details',
'#title' => t('Password recovery'),
'#collapsed' => TRUE,
'#description' => t('Edit the e-mail messages sent to users who request a new password.') . ' ' . $email_token_help,
'#group' => 'email',
'#weight' => 10,
......@@ -283,7 +282,6 @@ public function buildForm(array $form, array &$form_state) {
$form['email_activated'] = array(
'#type' => 'details',
'#title' => t('Account activation'),
'#collapsed' => TRUE,
'#description' => t('Enable and edit e-mail messages sent to users upon account activation (when an administrator activates an account of a user who has already registered, on a site where administrative approval is required).') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -317,7 +315,6 @@ public function buildForm(array $form, array &$form_state) {
$form['email_blocked'] = array(
'#type' => 'details',
'#title' => t('Account blocked'),
'#collapsed' => TRUE,
'#description' => t('Enable and edit e-mail messages sent to users when their accounts are blocked.') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -351,7 +348,6 @@ public function buildForm(array $form, array &$form_state) {
$form['email_cancel_confirm'] = array(
'#type' => 'details',
'#title' => t('Account cancellation confirmation'),
'#collapsed' => TRUE,
'#description' => t('Edit the e-mail messages sent to users when they attempt to cancel their accounts.') . ' ' . $email_token_help,
'#group' => 'email',
);
......@@ -371,7 +367,6 @@ public function buildForm(array $form, array &$form_state) {
$form['email_canceled'] = array(
'#type' => 'details',
'#title' => t('Account canceled'),
'#collapsed' => TRUE,
'#description' => t('Enable and edit e-mail messages sent to users when their accounts are canceled.') . ' ' . $email_token_help,
'#group' => 'email',
);
......
......@@ -290,7 +290,6 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['more'] = array(
'#type' => 'details',
'#title' => t('More'),
'#collapsed' => TRUE,
'#weight' => 150,
);
// Allow to alter the default values brought into the form.
......
......@@ -320,7 +320,6 @@ public function globalTokenForm(&$form, &$form_state) {
$form['global_tokens'] = array(
'#type' => 'fieldset',
'#title' => t('Available global token replacements'),
'#collapsed' => TRUE,
);
$form['global_tokens']['list'] = array(
'#theme' => 'item_list',
......
......@@ -107,7 +107,6 @@ public function tokenForm(&$form, &$form_state) {
$form['tokens'] = array(
'#type' => 'details',
'#title' => t('Replacement patterns'),
'#collapsed' => TRUE,
'#id' => 'edit-options-token-help',
'#states' => array(
'visible' => array(
......
......@@ -193,7 +193,6 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['exception'] = array(
'#type' => 'details',
'#title' => t('Exceptions'),
'#collapsed' => TRUE,
'#fieldset' => 'no_argument',
);
$form['exception']['value'] = array(
......
......@@ -535,7 +535,6 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['style_settings'] = array(
'#type' => 'details',
'#title' => t('Style settings'),
'#collapsed' => TRUE,
'#weight' => 99,
);
......@@ -684,7 +683,6 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['alter'] = array(
'#title' => t('Rewrite results'),
'#type' => 'details',
'#collapsed' => TRUE,
'#weight' => 100,
);
......@@ -885,7 +883,6 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['alter']['help'] = array(
'#type' => 'details',
'#title' => t('Replacement patterns'),
'#collapsed' => TRUE,
'#value' => $output,
'#states' => array(
'visible' => array(
......@@ -1024,7 +1021,6 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['empty_field_behavior'] = array(
'#type' => 'details',
'#title' => t('No results behavior'),
'#collapsed' => TRUE,
'#weight' => 100,
);
......
......@@ -75,7 +75,7 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['tags'] = array(
'#type' => 'details',
'#collapsed' => FALSE,
'#open' => TRUE,
'#tree' => TRUE,
'#title' => t('Pager link labels'),
'#input' => TRUE,
......@@ -95,7 +95,7 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['expose'] = array(
'#type' => 'details',
'#collapsed' => FALSE,
'#open' => TRUE,
'#tree' => TRUE,
'#title' => t('Exposed options'),
'#input' => TRUE,
......
......@@ -92,7 +92,7 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['guid_field_options'] = array(
'#type' => 'details',
'#title' => t('GUID settings'),
'#collapsed' => FALSE,
'#open' => TRUE,
);
$form['guid_field_options']['guid_field'] = array(
'#type' => 'select',
......
......@@ -503,7 +503,6 @@ public function getDisplayDetails($view, $display) {
$build['columns']['third'] = array(
'#type' => 'details',
'#title' => t('Advanced'),
'#collapsed' => TRUE,
'#theme_wrappers' => array('details', 'container'),
'#attributes' => array(
'class' => array(