From: Zach Copley Date: Thu, 6 Jan 2011 20:15:59 +0000 (-0800) Subject: Added Start/EndRegistrationTry events to Facebook Bridge's user registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77eda410305fca74968e9e99d25b2a9699432d32;p=quix0rs-gnu-social.git Added Start/EndRegistrationTry events to Facebook Bridge's user registration --- diff --git a/plugins/FacebookBridge/actions/facebookfinishlogin.php b/plugins/FacebookBridge/actions/facebookfinishlogin.php index 349acd7e22..022c1e98b1 100644 --- a/plugins/FacebookBridge/actions/facebookfinishlogin.php +++ b/plugins/FacebookBridge/actions/facebookfinishlogin.php @@ -299,6 +299,10 @@ class FacebookfinishloginAction extends Action function createNewUser() { + if (!Event::handle('StartRegistrationTry', array($this))) { + return; + } + if (common_config('site', 'closed')) { // TRANS: Client error trying to register with registrations not allowed. $this->clientError(_m('Registration not allowed.')); @@ -389,6 +393,8 @@ class FacebookfinishloginAction extends Action __FILE__ ); + Event::handle('EndRegistrationTry', array($this)); + $this->goHome($user->nickname); }