For the site I'm using this on, I thought it would be good if you could make it so if someone joins via an invitation they can be given some points too so I've implemented this and provided the patch here.
I also spotted one remaining reference to userpoints_basic (in the help url) so have corrected that too.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | userpoints_invite.install.txt | 726 bytes | jondoesdrupal |
| userpoints_invite.module.patch | 4.9 KB | jondoesdrupal |
Comments
Comment #1
kbahey commentedThe variable named USERPOINTS_INVITE_REGISTER has been renamed USERPOINTS_INVITE_REGISTER_INVITER.
This breaks backward compatibility for users who use this module. They have to go and configure invite again, or they can get wrong points.
So, either you rename it back to what it was (not breaking compatibilty), or you create an _update_1 function that takes care of that (rename the variable in the database).
Comment #2
jondoesdrupal commentedLaziness on my part there, not wrapping things up properly with an update.
Here's a .install file which provides the update - checks for an existing variable and replaces it with the new one if it finds it.
Comment #3
kbahey commentedCommitted to HEAD and 5.x
Thanks again.
Comment #4
(not verified) commented