Closed (fixed)
Project:
RSVP
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Oct 2006 at 09:22 UTC
Updated:
21 Jun 2007 at 20:25 UTC
This code will do the trick:
/**
* Implementation of hook_cron
*
* Processing assuring that new users get their invitations associated with their account.
*/
function rsvp_cron() {
$result = db_query('update rsvp_invite r, users u set r.uid=u.uid where r.uid=0 and r.email=u.mail');
}
It would be more elegant to calculate the uid on the fly, but this works too. Hope this helps.
Comments
Comment #1
owahab commentedCommited to 4.7.
Comment #2
owahab commentedPorted to 5.x.
Comment #3
owahab commented