Download & Extend

Is there a way to give user points on signup for a node?

Project:Signup
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I want to use the points module to give points for signing up for nodes (signup for volunteering for a shift, to provide supplies, or to be participant in a panel session at a conference). The members can use the points for the "volunteering" as discount in Ubercart when they pay for registration to the annual conference.

I saw that you can use a hook_form_alter() to do the opposite at the post http://drupal.org/node/376087. Does anyone know how this could be accomplished. Integration with user points would be a great feature for this module.

Thanks in advance. I'm looking through the other User Points contrib modules right now to try to figure out how to modify them to create one for Signup, but I'm not a developer.

Comments

#1

I'll leave it to the maintainer to decide, but I'd say this is best handled in a glue module rather than in signup itself.

hook_signup_data_alter is called when a signup is about to be saved.
hook_signup_insert is called once the signup is saved.
see signup.api.php for details.

Either of those (probably the latter) would allow you to write a small module to award the user points when they sign up.