Index: modules/search.module =================================================================== RCS file: /cvs/drupal/drupal/modules/search.module,v retrieving revision 1.133 diff -u -r1.133 search.module --- modules/search.module 25 Aug 2005 21:14:17 -0000 1.133 +++ modules/search.module 30 Aug 2005 20:33:02 -0000 @@ -150,17 +150,18 @@ $count = format_plural($remaining, 'There is 1 item left to index.', 'There are %count items left to index.'); $percentage = ((int)min(100, 100 * ($total - $remaining) / max(1, $total))) . '%'; $status = '

'. t('%percentage of the site has been indexed.', array('%percentage' => $percentage)) .' '. $count .'

'; - $output = form_group('Indexing status', $status); + $output = form_group_collapsible('Indexing status', $status); // Indexing throttle: $items = drupal_map_assoc(array(10, 20, 50, 100, 200, 500)); $group = form_select(t('Items to index per cron run'), 'search_cron_limit', variable_get('search_cron_limit', 100), $items, t('The maximum amount of items that will be indexed in one cron run. Set this number lower if your cron is timing out or if PHP is running out of memory.')); - $output .= form_group(t('Indexing throttle'), $group); + $output .= form_group_collapsible(t('Indexing throttle'), $group, TRUE); + // Indexing settings: $group = ''. t('

Changing the setting below will cause the site index to be rebuilt. The search index is not cleared but systematically updated to reflect the new settings. Searching will continue to work but new content won\'t be indexed until all existing content has been re-indexed.

The default settings should be appropriate for the majority of sites.

') .'
'; $group .= form_textfield(t('Minimum word length to index'), 'minimum_word_size', variable_get('minimum_word_size', 3), 5, 3, t('The number of characters a word has to be to be indexed. Words shorter than this will not be searchable.')); $group .= form_textfield(t('Minimum word length to search for'), 'remove_short', variable_get('remove_short', 3), 5, 3, t('The number of characters a word has to be to be searched for, including wildcard characters.')); - $output .= form_group(t('Indexing settings'), $group); + $output .= form_group_collapsible(t('Indexing settings'), $group, TRUE); return system_settings_form($output); } Index: modules/statistics.module =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics.module,v retrieving revision 1.204 diff -u -r1.204 statistics.module --- modules/statistics.module 25 Aug 2005 21:14:17 -0000 1.204 +++ modules/statistics.module 30 Aug 2005 20:33:56 -0000 @@ -340,12 +340,12 @@ $period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval'); $group .= form_select(t('Discard access logs older than'), 'statistics_flush_accesslog_timer', variable_get('statistics_flush_accesslog_timer', 259200), $period, t('Older access log entries (including referrer statistics) will be automatically discarded. Requires crontab.')); - $output = form_group(t('Access log settings'), $group); + $output = form_group_collapsible(t('Access log settings'), $group, TRUE); // count content views settings $group = form_radios(t('Count content views'), 'statistics_count_content_views', variable_get('statistics_count_content_views', 0), array('1' => t('Enabled'), '0' => t('Disabled')), t('Increment a counter each time content is viewed.')); $group .= form_radios(t('Display counter values'), 'statistics_display_counter', variable_get('statistics_display_counter', 0), array('1' => t('Enabled'), '0' => t('Disabled')), t('Display how many times given content has been viewed.')); - $output .= form_group(t('Content viewing counter settings'), $group); + $output .= form_group_collapsible(t('Content viewing counter settings'), $group, TRUE); return $output; } Index: modules/upload.module =================================================================== RCS file: /cvs/drupal/drupal/modules/upload.module,v retrieving revision 1.49 diff -u -r1.49 upload.module --- modules/upload.module 30 Aug 2005 15:22:29 -0000 1.49 +++ modules/upload.module 30 Aug 2005 20:36:29 -0000 @@ -85,7 +85,7 @@ $group .= form_textfield(t('Maximum resolution for uploaded images'), 'upload_max_resolution', variable_get('upload_max_resolution', 0), 15, 10, t('The maximum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Set to 0 for no restriction.')); - $output = form_group(t('General settings'), $group); + $output = form_group_collapsible(t('General settings'), $group, TRUE); $roles = user_roles(0, 'upload files'); @@ -93,7 +93,7 @@ $group = form_textfield(t('Permitted file extensions'), "upload_extensions_$rid", variable_get("upload_extensions_$rid", "jpg jpeg gif png txt html doc xls pdf ppt pps"), 60, 255, t('Extensions that users in this role can upload. Separate extensions with a space and do not include the leading dot.')); $group .= form_textfield(t('Maximum file size per upload'), "upload_uploadsize_$rid", variable_get("upload_uploadsize_$rid", 1), 5, 5, t('The maximum size of a file a user can upload (in megabytes).')); $group .= form_textfield(t('Total file size per user'), "upload_usersize_$rid", variable_get("upload_usersize_$rid", 10), 5, 5, t('The maximum size of all files a user can have on the site (in megabytes).')); - $output .= form_group(t('Settings for %role', array('%role' => theme('placeholder', $role))), $group); + $output .= form_group_collapsible(t('Settings for %role', array('%role' => theme('placeholder', $role))), $group, TRUE); } return system_settings_form($output); Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.502 diff -u -r1.502 user.module --- modules/user.module 25 Aug 2005 21:14:17 -0000 1.502 +++ modules/user.module 30 Aug 2005 20:18:11 -0000 @@ -1353,7 +1353,7 @@ // User registration settings. $group = form_radios(t('Public registrations'), 'user_register', variable_get('user_register', 1), array(t('Only site administrators can create new user accounts.'), t('Visitors can create accounts and no administrator approval is required.'), t('Visitors can create accounts but administrator approval is required.'))); $group .= form_textarea(t('User registration guidelines'), 'user_registration_help', variable_get('user_registration_help', ''), 60, 5, t('This text is displayed at the top of the user registration form. It\'s useful for helping or instructing your users.')); - $output = form_group(t('User registration settings'), $group); + $output = form_group_collapsible(t('User registration settings'), $group, TRUE); // User e-mail settings. $group = form_textfield(t('Subject of welcome e-mail'), 'user_mail_welcome_subject', _user_mail_text('welcome_subject'), 60, 180, t('Customize the subject of your welcome e-mail, which is sent to new members upon registering.') .' '. t('Available variables are:') .' %username, %site, %password, %uri, %uri_brief, %mailto, %date, %login_uri, %edit_uri, %login_url.'); @@ -1362,7 +1362,7 @@ $group .= form_textarea(t('Body of welcome e-mail (awaiting admin approval)'), 'user_mail_approval_body', _user_mail_text('approval_body'), 60, 15, t('Customize the body of the awaiting approval welcome e-mail, which is sent to new members upon registering.') .' '. t('Available variables are:') .' %username, %site, %password, %uri, %uri_brief, %mailto, %login_uri, %edit_uri, %login_url.'); $group .= form_textfield(t('Subject of password recovery e-mail'), 'user_mail_pass_subject', _user_mail_text('pass_subject'), 60, 180, t('Customize the Subject of your forgotten password e-mail.') .' '. t('Available variables are:') .' %username, %site, %login_url, %uri, %uri_brief, %mailto, %date, %login_uri, %edit_uri.'); $group .= form_textarea(t('Body of password recovery e-mail'), 'user_mail_pass_body', _user_mail_text('pass_body'), 60, 15, t('Customize the body of the forgotten password e-mail.') .' '. t('Available variables are:') .' %username, %site, %login_url, %uri, %uri_brief, %mailto, %login_uri, %edit_uri.'); - $output .= form_group(t('User email settings'), $group); + $output .= form_group_collapsible(t('User email settings'), $group, TRUE); // Picture settings. file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path'); @@ -1374,7 +1374,7 @@ $group .= form_textfield(t('Picture maximum file size'), 'user_picture_file_size', variable_get('user_picture_file_size', '30'), 15, 10, t('Maximum file size for pictures, in kB.')); $group .= form_textarea(t('Picture guidelines'), 'user_picture_guidelines', variable_get('user_picture_guidelines', ''), 60, 5, t('This text is displayed at the picture upload form in addition to the default guidelines. It\'s useful for helping or instructing your users.')); - $output .= form_group(t('Pictures'), $group); + $output .= form_group_collapsible(t('Pictures'), $group, TRUE); return $output; }