From: Brion Vibber Date: Thu, 20 Jan 2011 23:40:59 +0000 (-0800) Subject: Add Start/EndRegistrationData event hooks in finishopenidlogin: allows recaptcha... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7dc9d9c1fecfb6af80e411fc782bb964cb5b711b;p=quix0rs-gnu-social.git Add Start/EndRegistrationData event hooks in finishopenidlogin: allows recaptcha to add its captcha display to the form (checked since addition of StartRegistrationTry) --- diff --git a/plugins/OpenID/finishopenidlogin.php b/plugins/OpenID/finishopenidlogin.php index 8d498d0549..d6bd7390dd 100644 --- a/plugins/OpenID/finishopenidlogin.php +++ b/plugins/OpenID/finishopenidlogin.php @@ -118,11 +118,19 @@ class FinishopenidloginAction 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->elementStart('li'); $this->element('input', array('type' => 'checkbox', 'id' => 'license',