Hello,
The below code is to trigger some code when LoginToboggan's validation event occurs.
It looks to update the user account but Rules does not pick up the validation process where a role is updated in the user account.
Can anyone assist in figuring out why Rules "User details have been updated" does not get triggered?
#628334: Assign role on account confirmation
<?php
function my_module_name_user($op, $edit, &$account, $category = NULL) {
switch($op){
case 'update':
if($account->logintoboggan_email_validated)
//What happens when LT's _logintoboggan_process_validation() is finished
break;
}
}
?>
I am trying to create a rule that will be triggered by the event of the validation to set action to Send a privatemsg to the user.
I would really appreciate your help!
Comments
Comment #1
robby.smith commentedThe maintainer of LoginToboggan says:
this section of code is called any time LT processes a login. it should give you the flag you're looking to leverage:
The maintainer says it's a standard invocation of the user update hook. rules should support that.
Can anyone help me understand how to make rules trigger an event for this?
Comment #2
robby.smith commentedBelow is the complete function:
Comment #3
robby.smith commentedmy mistake, this rule only looked at AFTER the account details of updated
custom module with rules event at #678684: Rules Integration