You are here

function contribute_set_user_balance in Contribute 6

1 call to contribute_set_user_balance()
contribute_user_insert in ./contribute.module

File

./contribute.module, line 369
Lets users contribute to projects

Code

function contribute_set_user_balance($uid, $amount) {
  $result = db_query('INSERT INTO {contribute_account_balances} VALUES(%d,%f) ON DUPLICATE KEY UPDATE balance=%f', $uid, $amount, $amount);
}