aboutsummaryrefslogtreecommitdiff
path: root/mod/uservalidationbyemail
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-04 14:44:11 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-04 14:44:11 +0000
commit559cae5d9035f65f12c1cc25cffe05880a2734c4 (patch)
tree3e8440a0f58adfd69e342a782f114059ac7f5dcb /mod/uservalidationbyemail
parent03281b55dd23e90c51616e68e3edd2b488508dfe (diff)
downloadelgg-559cae5d9035f65f12c1cc25cffe05880a2734c4.tar.gz
elgg-559cae5d9035f65f12c1cc25cffe05880a2734c4.tar.bz2
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
Diffstat (limited to 'mod/uservalidationbyemail')
-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