Commit 1f5e126d authored by Dries's avatar Dries

Issue #1852104 by sun, nod_, Cottser, swentel: #type details: Remove #collapsible property.

parent e7ecf68c
...@@ -1710,10 +1710,9 @@ function form_error(&$element, $message = '') { ...@@ -1710,10 +1710,9 @@ function form_error(&$element, $message = '') {
* can also be used to set additional properties or implement special logic * can also be used to set additional properties or implement special logic
* other than adding child elements: for example, for the 'details' element * other than adding child elements: for example, for the 'details' element
* type, one of the functions in this array is form_process_details(), which * type, one of the functions in this array is form_process_details(), which
* adds the attributes and JavaScript needed to make the details collapsible * adds the attributes and JavaScript needed to make the details work in older
* if the #collapsible property is set. The #process functions are called in * browsers. The #process functions are called in preorder traversal, meaning
* preorder traversal, meaning they are called for the parent element first, * they are called for the parent element first, then for the child elements.
* then for the child elements.
* - $element['#after_build']: An array of functions called after form_builder() * - $element['#after_build']: An array of functions called after form_builder()
* is done with its processing of the element. These are called in postorder * is done with its processing of the element. These are called in postorder
* traversal, meaning they are called for the child elements first, then for * traversal, meaning they are called for the child elements first, then for
...@@ -2817,8 +2816,8 @@ function form_get_options($element, $key) { ...@@ -2817,8 +2816,8 @@ function form_get_options($element, $key) {
* @param $variables * @param $variables
* An associative array containing: * An associative array containing:
* - element: An associative array containing the properties of the element. * - element: An associative array containing the properties of the element.
* Properties used: #attributes, #children, #collapsed, #collapsible, * Properties used: #attributes, #children, #collapsed, #description, #id,
* #description, #id, #title, #value. * #title, #value.
* *
* @ingroup themeable * @ingroup themeable
*/ */
...@@ -2863,8 +2862,8 @@ function theme_fieldset($variables) { ...@@ -2863,8 +2862,8 @@ function theme_fieldset($variables) {
* @param $variables * @param $variables
* An associative array containing: * An associative array containing:
* - element: An associative array containing the properties of the element. * - element: An associative array containing the properties of the element.
* Properties used: #attributes, #children, #collapsed, #collapsible, * Properties used: #attributes, #children, #collapsed, #description, #id,
* #description, #id, #title, #value. * #title, #value.
* *
* @ingroup themeable * @ingroup themeable
*/ */
...@@ -3972,10 +3971,7 @@ function form_pre_render_details($element) { ...@@ -3972,10 +3971,7 @@ function form_pre_render_details($element) {
} }
// Collapsible details. // Collapsible details.
if (!empty($element['#collapsible'])) { $element['#attached']['library'][] = array('system', 'drupal.collapse');
$element['#attached']['library'][] = array('system', 'drupal.collapse');
$element['#attributes']['class'][] = 'collapsible';
}
if (empty($element['#collapsed'])) { if (empty($element['#collapsed'])) {
$element['#attributes']['open'] = 'open'; $element['#attributes']['open'] = 'open';
} }
......
...@@ -2189,7 +2189,6 @@ function _install_configure_form($form, &$form_state, &$install_state) { ...@@ -2189,7 +2189,6 @@ function _install_configure_form($form, &$form_state, &$install_state) {
$form['site_information'] = array( $form['site_information'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => st('Site information'), '#title' => st('Site information'),
'#collapsible' => FALSE,
); );
$form['site_information']['site_name'] = array( $form['site_information']['site_name'] = array(
'#type' => 'textfield', '#type' => 'textfield',
...@@ -2208,7 +2207,6 @@ function _install_configure_form($form, &$form_state, &$install_state) { ...@@ -2208,7 +2207,6 @@ function _install_configure_form($form, &$form_state, &$install_state) {
$form['admin_account'] = array( $form['admin_account'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => st('Site maintenance account'), '#title' => st('Site maintenance account'),
'#collapsible' => FALSE,
); );
$form['admin_account']['account']['#tree'] = TRUE; $form['admin_account']['account']['#tree'] = TRUE;
...@@ -2237,7 +2235,6 @@ function _install_configure_form($form, &$form_state, &$install_state) { ...@@ -2237,7 +2235,6 @@ function _install_configure_form($form, &$form_state, &$install_state) {
$form['server_settings'] = array( $form['server_settings'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => st('Server settings'), '#title' => st('Server settings'),
'#collapsible' => FALSE,
); );
$countries = country_get_list(); $countries = country_get_list();
...@@ -2264,7 +2261,6 @@ function _install_configure_form($form, &$form_state, &$install_state) { ...@@ -2264,7 +2261,6 @@ function _install_configure_form($form, &$form_state, &$install_state) {
$form['update_notifications'] = array( $form['update_notifications'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => st('Update notifications'), '#title' => st('Update notifications'),
'#collapsible' => FALSE,
); );
$form['update_notifications']['update_status_module'] = array( $form['update_notifications']['update_status_module'] = array(
'#type' => 'checkboxes', '#type' => 'checkboxes',
......
...@@ -234,7 +234,6 @@ public function getFormOptions($database) { ...@@ -234,7 +234,6 @@ public function getFormOptions($database) {
$form['advanced_options'] = array( $form['advanced_options'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => st('Advanced options'), '#title' => st('Advanced options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#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."), '#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, '#weight' => 10,
......
...@@ -408,7 +408,6 @@ public function getSettingsForm() { ...@@ -408,7 +408,6 @@ public function getSettingsForm() {
$form['advanced'] = array( $form['advanced'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Advanced settings'), '#title' => t('Advanced settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
); );
$form['advanced']['hostname'] = array( $form['advanced']['hostname'] = array(
......
...@@ -174,7 +174,7 @@ Drupal.behaviors.collapse = { ...@@ -174,7 +174,7 @@ Drupal.behaviors.collapse = {
if (isDetailsSupported) { if (isDetailsSupported) {
return; return;
} }
var $collapsibleDetails = $(context).find('details.collapsible').once('collapse'); var $collapsibleDetails = $(context).find('details').once('collapse');
if ($collapsibleDetails.length) { if ($collapsibleDetails.length) {
for (var i = 0; i < $collapsibleDetails.length; i++) { for (var i = 0; i < $collapsibleDetails.length; i++) {
CollapsibleDetails.instances.push(new CollapsibleDetails($collapsibleDetails[i], settings.collapsibleDetails)); CollapsibleDetails.instances.push(new CollapsibleDetails($collapsibleDetails[i], settings.collapsibleDetails));
......
...@@ -44,7 +44,7 @@ Drupal.behaviors.verticalTabs = { ...@@ -44,7 +44,7 @@ Drupal.behaviors.verticalTabs = {
}); });
tab_list.append(vertical_tab.item); tab_list.append(vertical_tab.item);
$this $this
.removeClass('collapsible collapsed') .removeClass('collapsed')
.attr('open', true) .attr('open', true)
.addClass('vertical-tabs-pane') .addClass('vertical-tabs-pane')
.data('verticalTab', vertical_tab); .data('verticalTab', vertical_tab);
......
...@@ -413,7 +413,6 @@ function aggregator_admin_form($form, $form_state) { ...@@ -413,7 +413,6 @@ function aggregator_admin_form($form, $form_state) {
'#type' => 'details', '#type' => 'details',
'#title' => t('Basic configuration'), '#title' => t('Basic configuration'),
'#description' => t('For most aggregation tasks, the default settings are fine.'), '#description' => t('For most aggregation tasks, the default settings are fine.'),
'#collapsible' => TRUE,
'#collapsed' => FALSE, '#collapsed' => FALSE,
); );
$form['basic_conf'] += $basic_conf; $form['basic_conf'] += $basic_conf;
......
...@@ -94,13 +94,12 @@ function aggregator_form_aggregator_admin_form_alter(&$form, $form_state) { ...@@ -94,13 +94,12 @@ function aggregator_form_aggregator_admin_form_alter(&$form, $form_state) {
$period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval'); $period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval');
$period[AGGREGATOR_CLEAR_NEVER] = t('Never'); $period[AGGREGATOR_CLEAR_NEVER] = t('Never');
// Only wrap into a collapsible details if there is a basic configuration. // Only wrap into details if there is a basic configuration.
if (isset($form['basic_conf'])) { if (isset($form['basic_conf'])) {
$form['modules']['aggregator'] = array( $form['modules']['aggregator'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Default processor settings'), '#title' => t('Default processor settings'),
'#description' => $info['description'], '#description' => $info['description'],
'#collapsible' => TRUE,
'#collapsed' => !in_array('aggregator', $aggregator_processors), '#collapsed' => !in_array('aggregator', $aggregator_processors),
); );
} }
......
...@@ -434,7 +434,6 @@ function _book_add_form_elements(&$form, &$form_state, Node $node) { ...@@ -434,7 +434,6 @@ function _book_add_form_elements(&$form, &$form_state, Node $node) {
'#type' => 'details', '#type' => 'details',
'#title' => t('Book outline'), '#title' => t('Book outline'),
'#weight' => 10, '#weight' => 10,
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'advanced', '#group' => 'advanced',
'#attributes' => array( '#attributes' => array(
......
...@@ -145,8 +145,6 @@ function book_outline_form($form, &$form_state, Node $node) { ...@@ -145,8 +145,6 @@ function book_outline_form($form, &$form_state, Node $node) {
$form['#id'] = 'book-outline'; $form['#id'] = 'book-outline';
_book_add_form_elements($form, $form_state, $node); _book_add_form_elements($form, $form_state, $node);
$form['book']['#collapsible'] = FALSE;
$form['update'] = array( $form['update'] = array(
'#type' => 'submit', '#type' => 'submit',
'#value' => $node->book['original_bid'] ? t('Update book outline') : t('Add to book outline'), '#value' => $node->book['original_bid'] ? t('Update book outline') : t('Add to book outline'),
......
...@@ -1017,7 +1017,6 @@ function comment_form_node_type_form_alter(&$form, $form_state) { ...@@ -1017,7 +1017,6 @@ function comment_form_node_type_form_alter(&$form, $form_state) {
$form['comment'] = array( $form['comment'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Comment settings'), '#title' => t('Comment settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'additional_settings', '#group' => 'additional_settings',
'#attributes' => array( '#attributes' => array(
...@@ -1124,7 +1123,6 @@ function comment_form_node_form_alter(&$form, $form_state) { ...@@ -1124,7 +1123,6 @@ function comment_form_node_form_alter(&$form, $form_state) {
'#type' => 'details', '#type' => 'details',
'#access' => user_access('administer comments'), '#access' => user_access('administer comments'),
'#title' => t('Comment settings'), '#title' => t('Comment settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'advanced', '#group' => 'advanced',
'#attributes' => array( '#attributes' => array(
......
...@@ -53,7 +53,6 @@ public function form(array $form, array &$form_state, EntityInterface $comment) ...@@ -53,7 +53,6 @@ public function form(array $form, array &$form_state, EntityInterface $comment)
$form['author'] += array( $form['author'] += array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Administration'), '#title' => t('Administration'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
); );
} }
......
...@@ -335,7 +335,6 @@ function contact_form_user_profile_form_alter(&$form, &$form_state) { ...@@ -335,7 +335,6 @@ function contact_form_user_profile_form_alter(&$form, &$form_state) {
'#type' => 'details', '#type' => 'details',
'#title' => t('Contact settings'), '#title' => t('Contact settings'),
'#weight' => 5, '#weight' => 5,
'#collapsible' => TRUE,
); );
$account = $form_state['controller']->getEntity($form_state); $account = $form_state['controller']->getEntity($form_state);
$account_data = drupal_container()->get('user.data')->get('contact', $account->id(), 'enabled'); $account_data = drupal_container()->get('user.data')->get('contact', $account->id(), 'enabled');
......
...@@ -320,7 +320,6 @@ function dblog_filter_form($form) { ...@@ -320,7 +320,6 @@ function dblog_filter_form($form) {
$form['filters'] = array( $form['filters'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Filter log messages'), '#title' => t('Filter log messages'),
'#collapsible' => TRUE,
'#collapsed' => empty($_SESSION['dblog_overview_filter']), '#collapsed' => empty($_SESSION['dblog_overview_filter']),
); );
foreach ($filters as $key => $filter) { foreach ($filters as $key => $filter) {
...@@ -398,7 +397,6 @@ function dblog_clear_log_form($form) { ...@@ -398,7 +397,6 @@ function dblog_clear_log_form($form) {
'#type' => 'details', '#type' => 'details',
'#title' => t('Clear log messages'), '#title' => t('Clear log messages'),
'#description' => t('This will permanently remove the log messages from the database.'), '#description' => t('This will permanently remove the log messages from the database.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
); );
$form['dblog_clear']['clear'] = array( $form['dblog_clear']['clear'] = array(
......
...@@ -467,7 +467,6 @@ function multiple_options_form(&$form, &$form_state) { ...@@ -467,7 +467,6 @@ function multiple_options_form(&$form, &$form_state) {
$form['multiple_field_settings'] = array( $form['multiple_field_settings'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Multiple field settings'), '#title' => t('Multiple field settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#weight' => 5, '#weight' => 5,
); );
......
...@@ -933,7 +933,6 @@ function field_ui_default_value_widget($field, $instance, &$form, &$form_state) ...@@ -933,7 +933,6 @@ function field_ui_default_value_widget($field, $instance, &$form, &$form_state)
$element = array( $element = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Default value'), '#title' => t('Default value'),
'#collapsible' => FALSE,
'#tree' => TRUE, '#tree' => TRUE,
'#description' => t('The default value for this field, used when creating new content.'), '#description' => t('The default value for this field, used when creating new content.'),
// Stick to an empty 'parents' on this form in order not to breaks widgets // Stick to an empty 'parents' on this form in order not to breaks widgets
......
...@@ -352,7 +352,6 @@ public function form(array $form, array &$form_state) { ...@@ -352,7 +352,6 @@ public function form(array $form, array &$form_state) {
$form['modes'] = array( $form['modes'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Custom display settings'), '#title' => t('Custom display settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
); );
// Collect options and default values for the 'Custom display settings' // Collect options and default values for the 'Custom display settings'
......
...@@ -828,7 +828,6 @@ function language_negotiation_configure_browser_form($form, &$form_state) { ...@@ -828,7 +828,6 @@ function language_negotiation_configure_browser_form($form, &$form_state) {
$form['new_mapping'] = array( $form['new_mapping'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Add a new mapping'), '#title' => t('Add a new mapping'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#tree' => TRUE, '#tree' => TRUE,
); );
......
...@@ -177,7 +177,6 @@ function locale_translate_export_form($form, &$form_state) { ...@@ -177,7 +177,6 @@ function locale_translate_export_form($form, &$form_state) {
$form['content_options'] = array( $form['content_options'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Export options'), '#title' => t('Export options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#tree' => TRUE, '#tree' => TRUE,
'#states' => array( '#states' => array(
......
...@@ -169,7 +169,6 @@ function locale_translate_filter_form($form, &$form_state) { ...@@ -169,7 +169,6 @@ function locale_translate_filter_form($form, &$form_state) {
$form['filters'] = array( $form['filters'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Filter translatable strings'), '#title' => t('Filter translatable strings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE, '#collapsed' => FALSE,
); );
foreach ($filters as $key => $filter) { foreach ($filters as $key => $filter) {
......
...@@ -571,7 +571,6 @@ function menu_form_node_form_alter(&$form, $form_state) { ...@@ -571,7 +571,6 @@ function menu_form_node_form_alter(&$form, $form_state) {
'#type' => 'details', '#type' => 'details',
'#title' => t('Menu settings'), '#title' => t('Menu settings'),
'#access' => user_access('administer menu'), '#access' => user_access('administer menu'),
'#collapsible' => TRUE,
'#collapsed' => !$link['link_title'], '#collapsed' => !$link['link_title'],
'#group' => 'advanced', '#group' => 'advanced',
'#attached' => array( '#attached' => array(
...@@ -677,7 +676,6 @@ function menu_form_node_type_form_alter(&$form, $form_state) { ...@@ -677,7 +676,6 @@ function menu_form_node_type_form_alter(&$form, $form_state) {
$form['menu'] = array( $form['menu'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Menu settings'), '#title' => t('Menu settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#attached' => array( '#attached' => array(
'library' => array(array('menu', 'drupal.menu.admin')), 'library' => array(array('menu', 'drupal.menu.admin')),
......
...@@ -158,7 +158,6 @@ function node_type_form($form, &$form_state, $type = NULL) { ...@@ -158,7 +158,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['submission'] = array( $form['submission'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Submission form settings'), '#title' => t('Submission form settings'),
'#collapsible' => TRUE,
'#group' => 'additional_settings', '#group' => 'additional_settings',
); );
$form['submission']['title_label'] = array( $form['submission']['title_label'] = array(
...@@ -193,7 +192,6 @@ function node_type_form($form, &$form_state, $type = NULL) { ...@@ -193,7 +192,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['workflow'] = array( $form['workflow'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Publishing options'), '#title' => t('Publishing options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'additional_settings', '#group' => 'additional_settings',
); );
...@@ -212,7 +210,6 @@ function node_type_form($form, &$form_state, $type = NULL) { ...@@ -212,7 +210,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['language'] = array( $form['language'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Language settings'), '#title' => t('Language settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'additional_settings', '#group' => 'additional_settings',
); );
...@@ -232,7 +229,6 @@ function node_type_form($form, &$form_state, $type = NULL) { ...@@ -232,7 +229,6 @@ function node_type_form($form, &$form_state, $type = NULL) {
$form['display'] = array( $form['display'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Display settings'), '#title' => t('Display settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'additional_settings', '#group' => 'additional_settings',
); );
......
...@@ -199,7 +199,6 @@ public function form(array $form, array &$form_state, EntityInterface $node) { ...@@ -199,7 +199,6 @@ public function form(array $form, array &$form_state, EntityInterface $node) {
'#type' => 'details', '#type' => 'details',
'#access' => user_access('administer nodes'), '#access' => user_access('administer nodes'),
'#title' => t('Authoring information'), '#title' => t('Authoring information'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'advanced', '#group' => 'advanced',
'#attributes' => array( '#attributes' => array(
...@@ -240,7 +239,6 @@ public function form(array $form, array &$form_state, EntityInterface $node) { ...@@ -240,7 +239,6 @@ public function form(array $form, array &$form_state, EntityInterface $node) {
'#type' => 'details', '#type' => 'details',
'#access' => user_access('administer nodes'), '#access' => user_access('administer nodes'),
'#title' => t('Promotion options'), '#title' => t('Promotion options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'advanced', '#group' => 'advanced',
'#attributes' => array( '#attributes' => array(
......
...@@ -2016,7 +2016,6 @@ function node_form_block_form_alter(&$form, &$form_state) { ...@@ -2016,7 +2016,6 @@ function node_form_block_form_alter(&$form, &$form_state) {
$form['visibility']['node_type'] = array( $form['visibility']['node_type'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Content types'), '#title' => t('Content types'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#group' => 'visibility', '#group' => 'visibility',
'#weight' => 5, '#weight' => 5,
...@@ -2346,7 +2345,6 @@ function node_form_search_form_alter(&$form, $form_state) { ...@@ -2346,7 +2345,6 @@ function node_form_search_form_alter(&$form, $form_state) {
$form['advanced'] = array( $form['advanced'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('Advanced search'), '#title' => t('Advanced search'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
'#attributes' => array('class' => array('search-advanced')), '#attributes' => array('class' => array('search-advanced')),
); );
......
...@@ -92,7 +92,6 @@ function overlay_form_user_profile_form_alter(&$form, &$form_state) { ...@@ -92,7 +92,6 @@ function overlay_form_user_profile_form_alter(&$form, &$form_state) {
'#type' => 'details', '#type' => 'details',
'#title' => t('Administrative overlay'), '#title' => t('Administrative overlay'),
'#weight' => 4, '#weight' => 4,
'#collapsible' => TRUE,
); );
$form['overlay_control']['overlay'] = array( $form['overlay_control']['overlay'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
......
...@@ -122,7 +122,6 @@ function path_form_node_form_alter(&$form, $form_state) { ...@@ -122,7 +122,6 @@ function path_form_node_form_alter(&$form, $form_state) {
$form['path'] = array( $form['path'] = array(
'#type' => 'details', '#type' => 'details',
'#title' => t('URL path settings'), '#title' => t('URL path settings'),
'#collapsible' => TRUE,
'#collapsed' => empty($path['alias']), '#collapsed' => empty($path['alias']),
'#group' => 'advanced', '#group' => 'advanced',
'#attributes' => array( '#attributes' => array(
......
...@@ -242,7 +242,6 @@ function simpletest_result_form($form, &$form_state, $test_id) { ...@@ -242,7 +242,6 @@ function simpletest_result_form($form, &$form_state, $test_id) {
'#type' => 'details', '#type' => 'details',
'#title' => $info['name'], '#title' => $info['name'],
'#description' => $info['description'], '#description' => $info['description'],
'#collapsible' => TRUE,
); );
$form['result']['results'][$group]['summary'] = $summary; $form['result']['results'][$group]['summary'] = $summary;
$group_summary = &$form['result']['results'][$group]['summary']; $group_summary = &$form['result']['results'][$group]['summary'];
...@@ -455,7 +454,6 @@ function simpletest_settings_form($form, &$form_state) { ...@@ -455,7 +454,6 @@ function simpletest_settings_form($form, &$form_state) {
'#type' => 'details', '#type' => 'details',
'#title' => t('HTTP authentication'), '#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.'), '#description' => t('HTTP auth settings to be used by the SimpleTest browser during testing. Useful when the site requires basic HTTP authentication.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE, '#collapsed' => TRUE,
); );
$form['httpauth']['simpletest_httpauth_method'] = array( $form['httpauth']['simpletest_httpauth_method'] = array(
......
...@@ -250,11 +250,8 @@ function testDrupalRenderFormElements() { ...@@ -250,11 +250,8 @@ function testDrupalRenderFormElements() {
$element = array( $element = array(
'#type' => 'details', '#type' => 'details',
'#title' => $this->randomName(), '#title' => $this->randomName(),
'#collapsible' => TRUE,
); );
$this->assertRenderedElement($element, '//details[contains(@class, :class)]', array( $this->assertRenderedElement($element, '//details');
':class' => 'collapsible',
));