function contribute_user in Contribute 6
File
- ./
contribute.module, line 330 - Lets users contribute to projects
Code
function contribute_user($op, &$edit, &$user) {
$contributions = contribute_get_user_contributions($user);
switch ($op) {
case "view":
$user->content['summary']['contributions'] = array(
'#type' => 'user_profile_item',
'#title' => t('Pledges'),
'#value' => theme_contribute_user_contributions($contributions),
'#attributes' => array(
'class' => 'blog',
),
);
break;
case "insert":
contribute_user_insert($user->uid);
break;
}
}