Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In current version, userpoints transaction status is displayed as numeric field. It makes no sense out of the box.
A simple handler displaying translated string for status would be more appropriate.
class userpoints_views_handler_field_status extends views_handler_field {
function render($values) {
$value = $this->get_value($values);
$statuses = userpoints_txn_status();
if (isset($statuses[$value])) {
return $statuses[$value];
}
else {
return '';
}
}
}
Comments
Comment #1
manuel.adanClosing this as outdated, 6.x version is no longer maintained.