--- userpoints_retroactive.module	Sun Oct 14 11:57:36 2007
+++ userpoints_retroactive_new.module	Sun Jun 01 15:31:58 2008
@@ -19,3 +19,4 @@
     'path'     => 'admin/settings/userpoints/retroactive',
-    'callback' => 'userpoints_retroactive_page',
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('userpoints_retroactive'),
     'title'    => t('Retroactive'),
@@ -27,6 +28,2 @@
 
-function userpoints_retroactive_page() {
-  return drupal_get_form('userpoints_retroactive', $form);
-}
-
 function userpoints_retroactive() {
@@ -63,4 +60,4 @@
 function userpoints_retroactive_nodes() {
-	$n_result = db_query("SELECT uid, type, COUNT(uid) AS val FROM {node} WHERE uid > 0 GROUP BY uid, type");
-	while($node = db_fetch_object($n_result)) {
+  $n_result = db_query("SELECT uid, type, COUNT(uid) AS val FROM {node} WHERE uid > 0 GROUP BY uid, type");
+  while($node = db_fetch_object($n_result)) {
     $weight = variable_get(USERPOINTS_POST . $node->type, 0);
@@ -73,3 +70,3 @@
     userpoints_userpointsapi($params);
-	}
+  }
 }
@@ -78,4 +75,4 @@
   $weight = variable_get(USERPOINTS_POST_COMMENT, 0);
-	$c_result = db_query('SELECT uid, COUNT(uid) AS val FROM {comments} WHERE uid > 0 GROUP BY uid');
-	while($comment = db_fetch_object($c_result)) {
+  $c_result = db_query('SELECT uid, COUNT(uid) AS val FROM {comments} WHERE uid > 0 GROUP BY uid');
+  while($comment = db_fetch_object($c_result)) {
     $params = array(
@@ -87,3 +84,3 @@
     userpoints_userpointsapi($params);
-	}
+  }
 }
