You are here

function userpoints_transaction in User Points 5

Same name and namespace in other branches
  1. 5.2 userpoints.module \userpoints_transaction()
1 call to userpoints_transaction()
userpoints_userpointsapi in ./userpoints.module

File

./userpoints.module, line 342

Code

function userpoints_transaction($moderation, $points = 0, $uid = 0, $event = NULL, $description = NULL, $reference = NULL) {
  db_query("INSERT INTO {userpoints_txn}\n    VALUES (0, %d, 0, %d, %d, %d, '%s', '%s', '%s')", $uid, $points, time(), $moderation, $event, $description, $reference);
  return $moderation;
}