From 2aa0e3846b60a44c6f2dbfe2f9a690776533dca3 Mon Sep 17 00:00:00 2001 From: hypeJunction Date: Mon, 12 Dec 2011 23:31:26 +0100 Subject: Fixed #4198 uservalidationbyemail respects the return value of the register,user hook --- mod/uservalidationbyemail/start.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/uservalidationbyemail') diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php index 8de5d0522..576e12247 100644 --- a/mod/uservalidationbyemail/start.php +++ b/mod/uservalidationbyemail/start.php @@ -69,6 +69,12 @@ function uservalidationbyemail_disable_new_user($hook, $type, $value, $params) { return; } + // another plugin is requesting that registration be terminated + // no need for uservalidationbyemail + if (!$value) { + return $value; + } + // disable user to prevent showing up on the site // set context so our canEdit() override works elgg_push_context('uservalidationbyemail_new_user'); -- cgit v1.2.3