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

owahab’s picture

Assigned: Unassigned » owahab
Status: Active » Fixed

Commited to 4.7.

owahab’s picture

Version: 4.7.x-1.x-dev » 5.x-1.0

Ported to 5.x.

owahab’s picture

Status: Fixed » Closed (fixed)