function contribute_get_node_contributions in Contribute 6
File
- ./
contribute.module, line 290 - Lets users contribute to projects
Code
function contribute_get_node_contributions($nid) {
if ($nid == 'all') {
$result = db_query('SELECT * FROM {contribute_contributions}');
}
else {
$result = db_query('SELECT * FROM {contribute_contributions} WHERE nid = %d', $nid);
}
$contributions = array();
while ($contribution = db_fetch_array($result)) {
$contributions[] = $contribution;
}
return $contributions;
}