You are here

function theme_userpoints_view_item in User Points 7

Same name and namespace in other branches
  1. 7.2 userpoints.theme.inc \theme_userpoints_view_item()

Theme implementation to display a userpoints item.

1 theme call to theme_userpoints_view_item()
userpoints_view_transaction in ./userpoints.pages.inc
Menu callback; display details about a specific transaction.

File

./userpoints.theme.inc, line 32
Theme functions for userpoints.module

Code

function theme_userpoints_view_item($variables) {
  $element = $variables['element'];
  $element += array(
    '#attributes' => array(),
  );
  $output = '<dt ' . drupal_attributes($element['#attributes']) . '>' . $element['#title'] . '</dt>';
  $output .= '<dd ' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</dd>';
  return $output;
}