summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Phillips2007-07-12 00:11:44 (GMT)
committer Chad Phillips2007-07-12 00:11:44 (GMT)
commit99a2a36c87a9cb9f22d8c1a69adfdcb47a110458 (patch)
tree75254dd4ac2031c8817886da627f4eb9749d04d0
parent1be71338c5f9a7e51d5c8c17cc7b6c81136407c0 (diff)
#110026 -- Invoke hook when validating email. patch by mcarbone, mfb.
-rwxr-xr-xlogintoboggan.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index 2e74d90..1198cce 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -755,6 +755,10 @@ function logintoboggan_validate_email($uid, $timestamp, $hashed_pass, $action =
// Remove the pre-auth role from the user, unless they haven't been approved yet.
if ($account->status) {
db_query("DELETE FROM {users_roles} WHERE uid = %d AND rid = %d", $account->uid, logintoboggan_validating_id());
+ // Allow other modules to react to email validation by invoking the user update hook.
+ $edit = array();
+ $account->logintoboggan_email_validated = TRUE;
+ user_module_invoke('update', $edit, $account);
}
// Where do we redirect after confirming the account?