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 think, that the parameter 'operation' in function 'userpoints_nodeapi' must be more informational. For example, if user add new comment, 'operation' must be like 'insert comment', not like now 'insert'. It's was be useful for translate into various languages.
Please review patch.
Comment | File | Size | Author |
---|---|---|---|
#1 | userpoints_nc.module.patch | 1.7 KB | dicreat |
userpoints_nc.module.patch | 1.69 KB | dicreat | |
Comments
Comment #1
dicreat CreditAttribution: dicreat commentedPlease review new patch, I'm forgot about translation.
Comment #2
shenzhuxi CreditAttribution: shenzhuxi commentedConfirmed the patch work perfectly.
Comment #3
quotesBro CreditAttribution: quotesBro commentedIt's useless, because entity type (node, comment, etc.) is stored in {userpoints_txn} table as well as operation.
And you shouldn't use t() because this string is stored in the database.