Index: poormanscron.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/poormanscron/poormanscron.module,v
retrieving revision 1.14
diff -u -Ffunc -r1.14 poormanscron.module
--- poormanscron.module	27 Aug 2005 23:35:02 -0000	1.14
+++ poormanscron.module	7 Oct 2005 06:42:30 -0000
@@ -79,31 +79,34 @@ function poormanscron_exit() {
  * Implementation of hook_settings().
  */
 function poormanscron_settings() {
-  $cron_runs_interval_description = t('Minimum number of minutes between cron runs. Cron will actually execute during the first page request after the interval has elapsed.');
+  $form['time_intervals'] = array(type => 'fieldset', title => t('Time intervals'), collapsible => FALSE, collapsed => FALSE);
+  $form['time_intervals']['poormanscron_interval'] = array(
+    type => 'textfield',
+    title => t('Cron runs interval'),
+    default_value => variable_get('poormanscron_interval', 60),
+    size => 5,
+    maxlength => 10,
+    description => t('Minimum number of minutes between cron runs. Cron will actually execute during the first page request after the interval has elapsed.')
+  );
+  $form['time_intervals']['poormanscron_retry_interval'] = array(
+    type => 'textfield',
+    title => t('Retry interval'),
+    default_value => variable_get('poormanscron_retry_interval', 10),
+    size => 3,
+    maxlength => 10,
+    description => t('The number of minutes to wait after a cron run error before retrying.')
+  );
+
+  $form['logging'] = array(type => 'fieldset', title => t('Logging'), collapsible => FALSE, collapsed => FALSE);
+  $form['logging']['poormanscron_log_cron_runs'] = array(
+    type => 'select',
+    title => t('Log successful cron runs'),
+    default_value => variable_get('poormanscron_log_cron_runs', 1), 
+    options => array('1' => t('Yes'), '0' => t('No')),
+    description => t('If you want to log successful cron runs to the Drupal watchdog, say Yes here. If those messages annoy you, disable them by selecting No.') 
+  );
 
-  $retry_interval_description = t('The number of minutes to wait after a cron run error before retrying.');
-
-  $log_cron_runs_description = t('If you want to log successful cron runs to the Drupal watchdog, say Yes here. If those messages annoy you, disable them by selecting No.');
-
-  $output = '';
-
-  $group = form_textfield(t('Cron runs interval'),
-                          'poormanscron_interval',
-                          variable_get('poormanscron_interval', 60),
-                          5, 10, $cron_runs_interval_description);
-  $group .= form_textfield(t('Retry interval'), 'poormanscron_retry_interval',
-                           variable_get('poormanscron_retry_interval', 10),
-                           3, 10, $retry_interval_description);
-  $output .= form_group(t('Time intervals'), $group);
-
-  $group = form_select(t('Log successful cron runs'),
-                       'poormanscron_log_cron_runs',
-                       variable_get('poormanscron_log_cron_runs', 1),
-                       array('1' => t('Yes'), '0' => t('No')),
-                       $log_cron_runs_description);
-  $output .= form_group(t('Logging'), $group);
-
-  return $output;
+  return $form;
 }
 
 ?>
