function theme_userpoints_view_category in User Points 7
Same name and namespace in other branches
- 7.2 userpoints.theme.inc \theme_userpoints_view_category()
Theme implementation to display a userpoints category.
1 theme call to theme_userpoints_view_category()
- userpoints_view_transaction in ./
userpoints.pages.inc - Menu callback; display details about a specific transaction.
File
- ./
userpoints.theme.inc, line 11 - Theme functions for userpoints.module
Code
function theme_userpoints_view_category($variables) {
$element = $variables['element'];
$element += array(
'#attributes' => array(),
);
$output = '';
if (!empty($element['#title'])) {
$output .= '<h3 ' . drupal_attributes($element['#attributes']) . '>' . $element['#title'] . '</h3>';
}
$output .= '<dl ' . drupal_attributes($element['#attributes']) . '>';
$output .= drupal_render_children($element);
$output .= '</dl>';
return $output;
}