Index: uc_userpoints_award.module
===================================================================
--- uc_userpoints_award.module	(revision 317)
+++ uc_userpoints_award.module	(working copy)
@@ -8,6 +8,7 @@
 define('USERPOINTS_REF_MULT',     'userpoints_ref_mult');
 define('USERPOINTS_AWARD_MODERATE',     'userpoints_award_moderate');
 define('USERPOINTS_REF_MODERATE',     'userpoints_ref_moderate');
+define('USERPOINTS_AWARD_CATEGORY',  'userpoints_award_category');
 
 function uc_userpoints_award_help($path, $arg) {
   switch ($path) {
@@ -70,7 +71,15 @@
 			'#title' => t('Moderate userpoints transaction'),
 			'#default_value' => variable_get(USERPOINTS_REF_MODERATE, 0),
 			'#options' => array(t('No'), t('Yes')),
-		  );
+    );
+ 	$form[$group][USERPOINTS_AWARD_CATEGORY] = array(
+	  '#type' => 'select',
+	  '#title' => t('Award Category'),
+	  '#description' => t('Category to assign awarded !points.', userpoints_translation()),
+	  '#default_value' => variable_get(USERPOINTS_AWARD_CATEGORY, NULL),
+	  '#options' => userpoints_get_categories(),
+	);
+
         }
       }
       return $form;
@@ -78,7 +87,6 @@
   }
 }
@@ -222,7 +230,7 @@
 		else {
 			$points = intval(($total * $multiplier));
 			$params = array (
-				'tid' => 0,
+				'tid' => variable_get(USERPOINTS_AWARD_CATEGORY, 0),
 				'uid' => $curUserId,
 				'points' => $points,
 				'operation' => 'insert',
@@ -244,7 +252,7 @@
 		else {
 			$points = intval(($total * $multiplier * $ref_mult));
 			$params = array (
-				'tid' => 0,
+				'tid' => variable_get(USERPOINTS_AWARD_CATEGORY, 0),
 				'uid' => $refUserId,
 				'points' => $points,
 				'operation' => 'insert',
