Hey guys, while working on a recent project, I found the need to add some functionality to the userpoints_votingapi module. Essentially, I needed to attribute certain votes to specific userpoints categories. I accomplished this by setting VotingAPI tags on the individual votes that correlated to the userpoints categories that I needed to attribute the points to. I made a patch to update the module, in case others might find this useful.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

omegamonk’s picture

FileSize
25.2 KB

Updating the patch to a proper patch name. Sorry about that.

mvlabat’s picture

Thank you for your contribution!

Your patch opened my eyes to a whole bunch of coding style issues. :)
I'm sorry about that, but could you, please, remake your patch using the latest dev version? It is now quite difficult to sort out what new your patch actually brings. Thank you again :)

omegamonk’s picture

FileSize
6.43 KB

No problem. Glad I could contribute the changes back. :) The patch is updated now. Thanks for your work on the module too! :)

omegamonk’s picture

FileSize
6.43 KB

There was one issue with my last patch. Uploaded the fixed version.

omegamonk’s picture

FileSize
9.22 KB

I'm going to throw one more update in there. During some additional testing, I discovered that the delete queries didn't take the tid into account, when removing transactions. I updated the *can_delete() function to add the tid as an argument and updated all four queries to use the tid as a condition, as well. Sorry about throwing another update at you.