Index: referral.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/referral/referral.module,v
retrieving revision 1.17
diff -u -p -r1.17 referral.module
--- referral.module	8 Oct 2008 21:47:09 -0000	1.17
+++ referral.module	25 Nov 2008 00:24:46 -0000
@@ -25,6 +25,7 @@ define('REFERRAL_HEX_LENGTH',   4);
 define('REFERRAL_DISPLAY_MODE', 'referral_display_mode');
 define('REFERRAL_USERPOINTS',   'referral_userpoints');
 define('REFERRAL_COOKIE',       'referral_data');
+define('REFERRAL_GOTO_PATH',    'referral_goto_path');
 
 
 function referral_help($path, $arg) {
@@ -124,6 +125,13 @@ function referral_settings() {
     '#options' => $options,
     '#description' => t('Select the way you want the referral link to be shown.'),
   );
+  
+  $form[REFERRAL_GOTO_PATH] = array(
+    '#type' => 'textfield',
+    '#title' => t('Referral goto path'),
+    '#default_value' => variable_get(REFERRAL_GOTO_PATH, 'user/register'),
+    '#description' => t('The path to redirect to after visiting the referral link.'),
+  );
 
   return system_settings_form($form);
 }
@@ -145,7 +153,7 @@ function referral_get() {
 
       setcookie(REFERRAL_COOKIE, serialize($cookie), time() + 86400, '/');
     }
-    drupal_goto('user/register');
+    drupal_goto(variable_get(REFERRAL_GOTO_PATH, 'user/register'));
   }
   drupal_goto();
 }
