function theme_userpoints_list_users_row in User Points 6
Same name and namespace in other branches
- 5.3 userpoints.module \theme_userpoints_list_users_row()
1 theme call to theme_userpoints_list_users_row()
File
- ./
userpoints.module, line 1480
Code
function theme_userpoints_list_users_row($row) {
global $user;
if (!$row->cat) {
$row->cat = t('!Uncategorized', userpoints_translation());
}
$details = '';
if ($user->uid == $row->uid) {
$details = " " . l(t("(details)"), "myuserpoints");
}
return array(
array(
'data' => theme('username', $row) . $details,
),
array(
'data' => $row->cat,
'align' => 'right',
),
array(
'data' => $row->points,
'align' => 'right',
),
);
}