Closed (fixed)
Project:
Drupal core
Version:
6.2
Component:
trigger.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2008 at 21:05 UTC
Updated:
22 Dec 2008 at 14:37 UTC
I want to trigger actions once a new user confirms their email; as of now, i only see "Trigger: After a user account has been created" which fires before confirmation.
Since i want to sign them up for a newsletter only after confirming their new account email, how can i make this happen?
Thanks,
m
Comments
Comment #1
ainigma32 commentedWrite your action to be triggered after a user is updated. The action will receive the new values for the user in the $context variable and the old ones are available through the $object variable.
Write a check to make sure the old data says unconfirmed and the new data says confirmed.
If the check is true sign the user up for a newsletter.
- Arie