function theme_userpoints_list_my_userpoints in User Points 6
1 theme call to theme_userpoints_list_my_userpoints()
File
- ./
userpoints.module, line 1864
Code
function theme_userpoints_list_my_userpoints($args, $header, $rows) {
$pager_limit = variable_get(USERPOINTS_REPORT_LIMIT, 10);
$output = theme('table', $header, $rows);
$output .= "<p>";
if (isset($args) && isset($args['subtotals'])) {
foreach ($args['subtotals'] as $tid => $data) {
$output .= '<strong>' . $data['name'] . ' ' . t('!points Balance', userpoints_translation()) . ':</strong> ' . $data['total'] . '<br />';
}
}
$output .= "</p>";
$output .= "<p>";
$output .= '<strong>' . t('Approved !points Balance', userpoints_translation()) . ':</strong> ' . $args['approved_total'] . '<br />';
$output .= '<strong>' . t('!Points awaiting moderation', userpoints_translation()) . ':</strong> ' . $args['unapproved_total'] . '<br />';
$output .= '<strong>' . t('Net !points Balance', userpoints_translation()) . ':</strong> ' . $args['overall_total'] . '<br />';
$output .= "</p>";
$output .= theme('pager', NULL, $pager_limit, 0);
return $output;
}