Active
Project:
User Referral
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2008 at 00:49 UTC
Updated:
28 Nov 2008 at 17:31 UTC
Description:
1. Upon new user that register a notification email will be sent to the user who refereed him.
It would be great if admin/user could choose when to get notify (new referred / flagged or both).
option to get a weekly/monthly email.
Comments
Comment #1
kbahey commentedNote to those interested in creating patches for this: It should be implemented using the new hook_referral, and should be a separate module under a subdirectory in 6.x.
Comment #2
ryan_courtnage commentederanglr, I'd suggest you try adding the code in this comment to referral.module:
http://drupal.org/node/338760#comment-1125853
It will expose the hook_referral that kbahey is speaking of to Drupal's core Triggers interface. You then just create a Drupal Action to "send an email" and assign this new referral trigger to it.
Comment #3
kbahey commentedActually, it is better to add it as a separate module.
@rcourtna, can you change the code in that issue to be a new module that depends on trigger as well as referral in its .info file, so we can remove the if (module_exists('trigger')) part.
Once you attach the .module and .info, I will commit them, and we have email functionality.