From c1e4be6ab937b6be17ce3424a674af5de2188682 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 20 Jan 2011 15:49:57 -0800 Subject: [PATCH] Event hook points needed to run Recaptcha on Twitter registration --- plugins/TwitterBridge/twitterauthorization.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/TwitterBridge/twitterauthorization.php b/plugins/TwitterBridge/twitterauthorization.php index cc3af58878..e78ba6a674 100644 --- a/plugins/TwitterBridge/twitterauthorization.php +++ b/plugins/TwitterBridge/twitterauthorization.php @@ -382,11 +382,19 @@ class TwitterauthorizationAction 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'); $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'); $this->submit('create', _m('Create')); $this->elementEnd('fieldset'); -- 2.39.5