aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/uservalidationbyemail/start.php11
1 files changed, 11 insertions, 0 deletions
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