You are here

function contribute_get_user_contributions in Contribute 6

2 calls to contribute_get_user_contributions()
contribute_profile_alter in ./contribute.module
contribute_user in ./contribute.module

File

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

Code

function contribute_get_user_contributions($user) {
  $result = db_query('SELECT * FROM {contribute_contributions} WHERE uid = %d', $user->uid);
  $contributions = array();
  $i = 0;
  while ($contribution = db_fetch_array($result)) {
    $contributions[] = $contribution;
  }
  return $contributions;
}