You are here

function contribute_update_user_balance in Contribute 6

2 calls to contribute_update_user_balance()
contribute_contribution in ./contribute.module
load_account_form_submit in ./contribute.module

File

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

Code

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