Index: invite.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/invite/invite.module,v
retrieving revision 1.10.2.94
diff -u -p -r1.10.2.94 invite.module
--- invite.module	12 Feb 2008 08:50:12 -0000	1.10.2.94
+++ invite.module	28 May 2008 21:32:30 -0000
@@ -335,6 +335,13 @@ function invite_settings() {
     '#multiple' => FALSE,
     '#required' => TRUE,
   );
+  $form['general']['invite_redirect'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Accepted Invitation Redirect'),
+    '#default_value' => variable_get('invite_redirect', 'user/register'),
+    '#description' => t('Set the page a user should be directed to when they click an invitation link. Use <front> to redirect to the homepage.'),
+    '#required' => TRUE,
+  );
 
   // Role settings
   $form['role'] = array(
@@ -475,7 +482,7 @@ function invite_action() {
     // Check for a valid invite code
     if (_invite_validate($invite)) {
       $_SESSION[INVITE_SESSION_NAME] = $invite->reg_code;
-      drupal_goto('user/register');
+      drupal_goto(variable_get('invite_redirect', 'user/register'));
     }
   }
 
