Currently Invite disallows any invitations to be sent to a user who has an outstanding invitation. It would be nice to have the option to turn off this settings, since IMO more invitations increases the likelihood of a user joining the site.

Thanks.

Comments

icecreamyou’s picture

Would commenting-out this code be enough to remove the restriction, or would it just remove the error message?

    // Filter out already invited users, but pass validation
    $failed_emails = _invite_validate_emails("SELECT email FROM {invite} WHERE email IN (%s)", $emails);
    if (count($failed_emails)) {
      $error = format_plural(count($failed_emails), 'The following recipient has already been invited:', 'The following recipients have already been invited:') .'<br />';
      $error .= implode(', ', array_map('check_plain', $failed_emails));
      drupal_set_message($error, 'error');
    }

Lines 818 to 827 of invite.module (version 1.13) I believe.

smk-ka’s picture

Status: Active » Closed (won't fix)

Unfortunately not, both the database (email column is unique) and the code require changes. However, this issue has been addressed in the 2.0 branch. Be warned though, that 2.0 is very alpha and likely to change whenever I find time to work on it.

icecreamyou’s picture

Well, can I get around it by moving the re-send time to one day but keeping the invite link valid for longer? Obviously there would be other repercussions (the invite might register as Expired) but it's a thought I suppose.

smk-ka’s picture

No, because you would still end up with a duplicate email address in the database. However, if you manipulate the database accordingly and apply the code change it *could* already be enough to make it work.

icecreamyou’s picture

I don't really want to mess with hacking it up that much. However, if by some miracle I find myself with enough time before you've released a stable 2.x branch, I'll try to look at backporting this feature.

Thanks.