You are here

function theme_userpoints_list_users_row in User Points 5.3

Same name and namespace in other branches
  1. 6 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 1335

Code

function theme_userpoints_list_users_row(&$row) {
  global $user;
  if (!$row->cat) {
    $row->cat = t('!Uncategorized', userpoints_translation());
  }
  if ($user->uid == $row->uid) {
    $details = "  " . l("(details)", "myuserpoints");
  }
  return array(
    array(
      'data' => theme('username', $row) . $details,
    ),
    array(
      'data' => $row->cat,
      'align' => 'right',
    ),
    array(
      'data' => $row->points,
      'align' => 'right',
    ),
  );
}