diff options
| author | hypeJunction <ismayil.khayredinov@hypejunction.com> | 2011-12-12 23:31:26 +0100 | 
|---|---|---|
| committer | cash <cash.costello@gmail.com> | 2011-12-14 20:44:09 -0500 | 
| commit | 2aa0e3846b60a44c6f2dbfe2f9a690776533dca3 (patch) | |
| tree | 4b870516470ad3c8ae0b0bc0427684e98f9fe7b1 | |
| parent | 1ebbff44be8bccb87ec8cacee171d9b951ec50f4 (diff) | |
| download | elgg-2aa0e3846b60a44c6f2dbfe2f9a690776533dca3.tar.gz elgg-2aa0e3846b60a44c6f2dbfe2f9a690776533dca3.tar.bz2  | |
Fixed #4198 uservalidationbyemail respects the return value of the register,user hook
| -rw-r--r-- | mod/uservalidationbyemail/start.php | 6 | 
1 files changed, 6 insertions, 0 deletions
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');  | 
