aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/walledgarden/start.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/walledgarden/start.php b/mod/walledgarden/start.php
index 260a8c1e4..9c9a2fce3 100644
--- a/mod/walledgarden/start.php
+++ b/mod/walledgarden/start.php
@@ -13,7 +13,9 @@ function walledgarden_init(){
elgg_extend_view('pageshells/pageshell', 'walledgarden/walledgarden');
elgg_extend_view('css','walledgarden/css');
- register_plugin_hook('new_twitter_user', 'twitter_service', 'walledgarden_new_twitter_user');
+ // restrict external user creation
+ register_plugin_hook('new_twitter_user', 'twitter_service', 'walledgarden_new_external_user');
+ register_plugin_hook('new_facebook_user', 'facebook_service', 'walledgarden_new_external_user');
if(!isloggedin())
register_plugin_hook('index','system','walledgarden_index');
@@ -40,7 +42,7 @@ function walledgarden_index() {
}
-function walledgarden_new_twitter_user($hook, $entity_type, $returnvalue, $params) {
+function walledgarden_new_external_user($hook, $entity_type, $returnvalue, $params) {
// do not allow new users to be created within the walled-garden
register_error(elgg_echo('walledgarden:new_user:fail'));
return FALSE;