Index: dcl_importer.module =================================================================== --- dcl_importer.module (revision 171) +++ dcl_importer.module (working copy) @@ -123,8 +123,19 @@ $contactList[] = $tmpEmail; } } - $_SESSION['invite_failed_emails'] = serialize($contactList); - drupal_goto('invite'); + + // if this is an OG invite lets go to their invite form + if (module_exists('og') && arg(0) == 'og') { + array_pop($contactList); + $_SESSION['invite_failed_emails'] = serialize($contactList); + drupal_goto('og/invite/'. arg(2)); + } + // otherwise lets use std invite.module's form. + else { + $_SESSION['invite_failed_emails'] = serialize($contactList); + drupal_goto('invite'); + } + } } ?>