_rsvp_has_rsvps($nid, $uid = NULL)
rsvp/rsvp.module, line 1615
$nid The id of the event node.
<?php
function _rsvp_has_rsvps($nid, $uid = NULL) {
if (!$uid) {
global $user;
$uid = $user->uid;
}
if (db_num_rows(db_query('SELECT uid FROM {rsvp} WHERE nid = %d AND uid = %d', $nid, $uid)) > 0) {
return TRUE;
}
return FALSE;
}
?>