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.
I get Points, Category, and Timestamp OK, but Description just shows up as blank.
Comment | File | Size | Author |
---|---|---|---|
#7 | 1351684-userpoints-views-description-handler.patch | 3.05 KB | david_garcia |
view-configuration.png | 71.41 KB | holtzermann17 | |
userpoints-view.png | 12.93 KB | holtzermann17 |
Comments
Comment #1
BerdirAre you sure that there is a description?
Note that the "Reason" is often a automatically generated string based on the operation, not the Description.
Comment #2
holtzermann17 CreditAttribution: holtzermann17 commentedOh, I thought that "Reason" was the "Description". My mistake! The question should then be "how to make the Reason" show up in the view? Thanks!
Comment #3
holtzermann17 CreditAttribution: holtzermann17 commentedAnswering my follow-up question:
Install http://drupal.org/project/views_php and add a field to the view that's something like the following:
Comment #4
holtzermann17 CreditAttribution: holtzermann17 commentedComment #5
a.ross CreditAttribution: a.ross commentedviews_php is not a solution.
And this is a bug.
Comment #6
david_garcia CreditAttribution: david_garcia commentedClosed https://drupal.org/node/1351684 as a duplicate.
Comment #7
david_garcia CreditAttribution: david_garcia commentedHere is a patch for that. We need a specific handler for the description. Performance is not as good as it could be, but it works.
Comment #8
david_garcia CreditAttribution: david_garcia commentedThe patch needs a full registry rebuild after being applied, description field must be readded due to new class handler.
Just run update.php.