You are here

function user_relationship_invites_invite in User Relationships 5

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

Implements hook_invite()

File

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

Code

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