You are here

function contribute_get_node_balance in Contribute 6

3 calls to contribute_get_node_balance()
contribute_contribution in ./contribute.module
contribute_form_submit in ./contribute.module
contribute_nodeapi in ./contribute.module

File

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

Code

function contribute_get_node_balance($nid) {
  $result = db_query('SELECT budget-total FROM {contribute_contribution_recipients} WHERE nid =%d', $nid);
  return db_result($result);
}