? util.patch
Index: util.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/util/util.module,v
retrieving revision 1.2
diff -u -p -r1.2 util.module
--- util.module	21 Mar 2007 01:18:04 -0000	1.2
+++ util.module	22 Mar 2007 16:49:32 -0000
@@ -4,21 +4,19 @@
 /*
  * Implementation of hook_menu
  */
-function util_menu($may_cache)
-{
+function util_menu($may_cache) {
   $items = array();
   $items[] = array(
-  	'path' => 'admin/settings/util',
-  	'title' => t('Utility module settings'),
-  	'description' => t('Utility module settings'),
+    'path' => 'admin/settings/util',
+    'title' => t('Utility module settings'),
+    'description' => t('Utility module settings'),
     'callback' => 'drupal_get_form',
     'callback arguments' => array('util_settings'),
-  	'access' => user_access('administer util'),
-  	'type' => MENU_NORMAL_ITEM,
+    'access' => user_access('administer util'),
+    'type' => MENU_NORMAL_ITEM,
   );
   
-  if(!$may_cache)
-  {
+  if (!$may_cache) {
     util_run_utilities();
   }
   return $items;
@@ -29,14 +27,14 @@ function util_menu($may_cache)
  */
 function util_run_utilities() {
   global $hook_files;
-  $files = drupal_system_listing("\.inc", drupal_get_path('module', 'util') ."/utilities", 'name', 1);
+  $files = drupal_system_listing("\.inc", drupal_get_path('module', 'util') . "/utilities", 'name', 1);
   ksort($files);
   $hook_files = array();
   $hooks = array();
   foreach ($files as $file) {
-    include $file->filename;
-    $hooks = array_merge(call_user_func($file->name ."_util", "hook registry"), $hooks);
-    $hook_files[$file->name] = call_user_func($file->name ."_util", "hook registry");
+    include$file->filename;
+    $hooks = array_merge(call_user_func($file->name . "_util", "hook registry"), $hooks);
+    $hook_files[$file->name] = call_user_func($file->name . "_util", "hook registry");
   }
   /*
    *  Functionality to be used in a future version - see 5.x-2.x-dev
@@ -63,13 +61,11 @@ function util_run_utilities() {
   */
 }
 
-function util_settings()
-{
+function util_settings() {
   global $hook_files;
   $form = array();
-  foreach($hook_files as $file => $blank)
-  {
-    $form = array_merge(call_user_func($file .'_util', 'settings form'), $form);
+  foreach ($hook_files as $file => $blank) {
+    $form = array_merge(call_user_func($file . '_util', 'settings form'), $form);
   }
   return system_settings_form($form);
 }
@@ -87,5 +83,6 @@ function util_form_alter($form_id, &$for
  * Implementation of hook_perm().
  */
 function util_perm() {
-	return array('administer util');
+  return array('administer util');
 }
+
Index: utilities/system_modules/system_modules.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/util/utilities/system_modules/system_modules.inc,v
retrieving revision 1.1
diff -u -p -r1.1 system_modules.inc
--- utilities/system_modules/system_modules.inc	20 Mar 2007 04:01:29 -0000	1.1
+++ utilities/system_modules/system_modules.inc	22 Mar 2007 16:52:34 -0000
@@ -4,44 +4,38 @@
 /*
  * Implementation of hook_util.  Enables collapsing of fieldsets on admin/build/modules
  */
-function system_modules_util($case)
-{
-  switch($case)
-  {
+function system_modules_util($case) {
+  switch ($case) {
     case 'settings form':
       $form = array();
       $form['util_system_collapse'] = array(
-      	'#type' => 'checkbox',
+        '#type' => 'checkbox',
         '#title' => t('Collapse all fieldsets on the module enabling page'),
-        '#default_value' => variable_get('system_collapse', 1)
+        '#default_value' => variable_get('system_collapse', 1),
       );
       return $form;
-      break;
+    
     case 'hook registry':
       return array('form_alter');
-      break;
   }
 }
 
 /*
  * Implementation of hook_util_form_alter
  */
-function system_modules_util_form_alter($form_id, &$form)
-{
-  if($form_id == 'system_modules' && variable_get('util_system_collapse', 1) == 1)
-  {
-      $form['#theme'] = 'system_modules_util_system_modules_form';
+function system_modules_util_form_alter($form_id, &$form) {
+  if ($form_id == 'system_modules' && variable_get('util_system_collapse', 1) == 1) {
+    $form['#theme'] = 'system_modules_util_system_modules_form';
   }
 }
 /*
  * Theme function for admin/build/modules
  */
-function theme_system_modules_util_system_modules_form($form)
-{
+function theme_system_modules_util_system_modules_form($form) {
   if (isset($form['confirm'])) {
     return drupal_render($form);
   }
-
+  
   // Individual table headers.
   $header = array(t('Enabled'));
   if (module_exists('throttle')) {
@@ -50,7 +44,7 @@ function theme_system_modules_util_syste
   $header[] = t('Name');
   $header[] = t('Version');
   $header[] = t('Description');
-
+  
   // Pull package information from module list and start grouping modules.
   $modules = $form['validation_modules']['#value'];
   foreach ($modules as $module) {
@@ -60,7 +54,7 @@ function theme_system_modules_util_syste
     $packages[$module->info['package']][$module->name] = $module->info;
   }
   ksort($packages);
-
+  
   // Display packages.
   $output = '';
   foreach ($packages as $package => $modules) {
@@ -68,11 +62,11 @@ function theme_system_modules_util_syste
     foreach ($modules as $key => $module) {
       $row = array();
       $row[] = array('data' => drupal_render($form['status'][$key]), 'align' => 'center');
-
+      
       if (module_exists('throttle')) {
         $row[] = array('data' => drupal_render($form['throttle'][$key]), 'align' => 'center');
       }
-      $row[] = '<strong>'. drupal_render($form['name'][$key]) .'</strong>';
+      $row[] = '<strong>' . drupal_render($form['name'][$key]) . '</strong>';
       $row[] = drupal_render($form['version'][$key]);
       $row[] = array('data' => drupal_render($form['description'][$key]), 'class' => 'description');
       $rows[] = $row;
@@ -81,11 +75,12 @@ function theme_system_modules_util_syste
       '#title' => t($package),
       '#collapsible' => TRUE,
       '#collapsed' => TRUE, //This is the only line that was changed
-      '#value' => theme('table', $header, $rows, array('class' => 'package')),
+    '#value' => theme('table', $header, $rows, array('class' => 'package')),
     );
     $output .= theme('fieldset', $fieldset);
   }
-
+  
   $output .= drupal_render($form);
   return $output;
-}
\ No newline at end of file
+}
+
