newbie LAC Posted December 22, 2015 Share Posted December 22, 2015 Hello, applications/core/modules/admin/membersettings/spam.php 'options' => array( 'none' => 'captcha_type_none', 'recaptcha2' => 'captcha_type_recaptcha2', 'recaptcha' => 'captcha_type_recaptcha', 'keycaptcha' => 'captcha_type_keycaptcha' ), Link to comment Share on other sites More sharing options...
bfarber Posted December 28, 2015 Share Posted December 28, 2015 I've abstracted to a method for the next release to make it simpler to override and add new options. Link to comment Share on other sites More sharing options...
newbie LAC Posted January 26, 2016 Author Share Posted January 26, 2016 On 28.12.2015 at 11:02 PM, bfarber said: I've abstracted to a method for the next release to make it simpler to override and add new options. Hello, Thank you. Could you separate form elements and saving form? Currently I use /** * Show CAPTCHA settings * * @return string HTML to display */ protected function _manageCaptcha() { $captchaForm = parent::_manageCaptcha(); $captchaForm->add( new \IPS\Helpers\Form\Text( 'newcaptcha_pub_key', \IPS\Settings::i()->newcaptcha_pub_key, FALSE, array(), NULL, NULL, NULL, 'newcaptcha_pub_key' ) ); // Added this to save newcaptcha_pub_key setting if ( $captchaForm->values() ) { $captchaForm->saveAsSettings(); } return $captchaForm; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.