From 559cae5d9035f65f12c1cc25cffe05880a2734c4 Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 4 Jun 2010 14:44:11 +0000 Subject: Allowing new users to validate email addresses if the site is a Private Network. git-svn-id: http://code.elgg.org/elgg/trunk@6355 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/uservalidationbyemail/start.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mod/uservalidationbyemail') diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php index fcfcb899d..3ce7542c2 100644 --- a/mod/uservalidationbyemail/start.php +++ b/mod/uservalidationbyemail/start.php @@ -17,6 +17,9 @@ function uservalidationbyemail_init() { // Register hook listening to new users. register_elgg_event_handler('validate', 'user', 'uservalidationbyemail_email_validation'); + + // register Walled Garden public pages + register_plugin_hook('public_pages', 'walled_garden', 'uservalidationbyemail_public_pages'); } /** @@ -134,5 +137,13 @@ function uservalidationbyemail_validate_email($user_guid, $code) { return false; } +/** + * Registers public pages to allow in the case Private Network has been enabled. + */ +function uservalidationbyemail_public_pages($hook, $type, $return_value, $params) { + $return_value[] = 'pg/uservalidationbyemail/confirm'; + return $return_value; +} + // Initialise register_elgg_event_handler('init', 'system', 'uservalidationbyemail_init'); \ No newline at end of file -- cgit v1.2.3