You are here

function theme_userpoints_list_users_row in User Points 6

Same name and namespace in other branches
  1. 5.3 userpoints.module \theme_userpoints_list_users_row()
1 theme call to theme_userpoints_list_users_row()
userpoints_list_users in ./userpoints.module

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',
    ),
  );
}