From ddde99cd89bb16ce8fdac182d41980b43a43d593 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 20 Jan 2011 15:55:36 -0800 Subject: [PATCH] Event hook points needed for recaptcha on facebook login form (untested, but should be legit -- same adds as openid & twitter reg forms) --- plugins/FacebookBridge/actions/facebookfinishlogin.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/FacebookBridge/actions/facebookfinishlogin.php b/plugins/FacebookBridge/actions/facebookfinishlogin.php index 022c1e98b1..7b2f274741 100644 --- a/plugins/FacebookBridge/actions/facebookfinishlogin.php +++ b/plugins/FacebookBridge/actions/facebookfinishlogin.php @@ -257,12 +257,20 @@ class FacebookfinishloginAction extends Action $this->element('p', null, _m('Create a new user with this nickname.')); $this->elementStart('ul', 'form_data'); + + // Hook point for captcha etc + Event::handle('StartRegistrationFormData', array($this)); + $this->elementStart('li'); // TRANS: Field label. $this->input('newname', _m('New nickname'), ($this->username) ? $this->username : '', _m('1-64 lowercase letters or numbers, no punctuation or spaces')); $this->elementEnd('li'); + + // Hook point for captcha etc + Event::handle('EndRegistrationFormData', array($this)); + $this->elementEnd('ul'); // TRANS: Submit button. $this->submit('create', _m('BUTTON','Create')); -- 2.39.5