You are here

function user_relationship_invites_invite in User Relationships 6

Same name and namespace in other branches
  1. 5 plugins/user_relationship_invites/user_relationship_invites.module \user_relationship_invites_invite()
  2. 5.2 plugins/user_relationship_invites/user_relationship_invites.module \user_relationship_invites_invite()

Implementation of hook_invite().

File

user_relationship_invites/user_relationship_invites.module, line 62
Drupal Module: User Relationship Invites

Code

function user_relationship_invites_invite($op, $args) {
  switch ($op) {
    case 'invite':
      db_query("INSERT INTO {user_relationship_invites} (inviter_uid, rtid, invite_code) VALUES (%d, %d, '%s')", $args['inviter']->uid, $args['inviter']->rtid, $args['code']);
      break;
  }
}