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.

Comments

kbahey’s picture

Status: Needs review » Needs work

The 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).

jondoesdrupal’s picture

StatusFileSize
new726 bytes

Laziness 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.

kbahey’s picture

Status: Needs work » Fixed

Committed to HEAD and 5.x

Thanks again.

Anonymous’s picture

Status: Fixed » Closed (fixed)