diff options
Diffstat (limited to 'mod/walledgarden/start.php')
-rw-r--r-- | mod/walledgarden/start.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/walledgarden/start.php b/mod/walledgarden/start.php index 9d28a1418..df0982d3c 100644 --- a/mod/walledgarden/start.php +++ b/mod/walledgarden/start.php @@ -29,7 +29,8 @@ //if (function_exists('elgg_view_disable_simplecache')) { // elgg_view_disable_simplecache(); //} - + + register_plugin_hook('new_twitter_user', 'twitter_service', 'walledgarden_new_twitter_user'); } function walledgarden_pagesetup() { @@ -52,6 +53,12 @@ return true; } + + function walledgarden_new_twitter_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; + } register_elgg_event_handler('init','system','walledgarden_init'); register_elgg_event_handler('pagesetup','system','walledgarden_pagesetup'); |