function contribute_update_node_budget in Contribute 6
File
- ./
contribute.module, line 406 - Lets users contribute to projects
Code
function contribute_update_node_budget($nid, $amount) {
$result = db_query('INSERT INTO {contribute_contribution_recipients} VALUES(%d,0,%f) ON DUPLICATE KEY UPDATE budget=%f', $nid, $amount, $amount);
# $result = db_query('UPDATE {contribute_contribution_recipients} SET total=%f+total WHERE nid=%d',$amount,$nid);
}