You are here

function theme_userpoints_list_users in User Points 6

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

File

./userpoints.module, line 1448

Code

function theme_userpoints_list_users($header, $rows, $tid, $pager_limit) {

  // If there is only one category, there is no sense in display the category filter dropdown
  if (count(userpoints_get_categories()) > 1) {
    $output = drupal_get_form('userpoints_filter_cat_select', 'userpoints/', $tid);
    $output .= theme('table', $header, $rows);
    $output .= theme('pager', NULL, $pager_limit, 0);
  }
  else {
    $output = theme('table', $header, $rows);
    $output .= theme('pager', NULL, $pager_limit, 0);
  }
  return $output;
}