From: Brion Vibber Date: Thu, 20 Jan 2011 23:49:57 +0000 (-0800) Subject: Event hook points needed to run Recaptcha on Twitter registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1e4be6ab937b6be17ce3424a674af5de2188682;p=quix0rs-gnu-social.git Event hook points needed to run Recaptcha on Twitter registration --- 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');