Commit df5e3200 authored by Tino Goratsch's avatar Tino Goratsch

made it possible to extend the captcha settings page and validation with...

made it possible to extend the captcha settings page and validation with captcha specific custom form fields
parent c3e689b8
......@@ -2,5 +2,6 @@
{block CONTENT_AJAX_FORM}
{include file="asset:System/Partials/form_group.select.tpl" options=$captchas required=true label={lang t="captcha|captcha_type"}}
{event name="captcha.admin_settings.custom_fields" form=$form}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/captcha"}}
{/block}
......@@ -29,6 +29,8 @@ class AdminSettingsFormValidation extends AbstractFormValidation
'message' => $this->translator->t('captcha', 'select_captcha_type')
]);
$this->validator->dispatchValidationEvent('captcha.validation.admin_settings.custom_fields', $formData);
$this->validator->validate();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment