_rsvp_attendee_exists

Definition

_rsvp_attendee_exists($rid, $email)
rsvp/rsvp.module, line 1539

Description

  • Checks if an email address already exists for an rsvp.
*
  • *

Parameters

$rid The id of the rsvp.

  • @param $email The email to check for.
  • @return boolean true if the email exists for the rsvp.

Code

<?php
function _rsvp_attendee_exists($rid, $email) {
  if (db_num_rows(db_query('SELECT uid FROM {rsvp_invite} WHERE rid = %d AND email = \'%s\'', $rid, $email)) > 0) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}
?>