_rsvp_get_invites

Definition

_rsvp_get_invites($uid = NULL)
rsvp/rsvp.module, line 1455

Description

  • Returns the invites that a user has received.
*
  • *

Parameters

$uid The uid of the user.

  • @return array of event nids.

Code

<?php
function _rsvp_get_invites($uid = NULL) {
  if (!$uid) {
    global $user;
    $uid = $user->uid;
  }
  return db_query('SELECT * FROM {rsvp} r LEFT JOIN {rsvp_invite} u ON r.rid = u.rid WHERE u.uid = %d', $uid);
}
?>