function theme_userpoints_list_users in User Points 5.3
Same name and namespace in other branches
- 6 userpoints.module \theme_userpoints_list_users()
1 theme call to theme_userpoints_list_users()
File
- ./
userpoints.module, line 1306
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;
}