$this->addFormRule(['CRM_Mailing_Form_Subscribe', 'formRule']);
}
- // CRM-11316 Enable ReCAPTCHA for anonymous visitors
- $session = CRM_Core_Session::singleton();
- $contactID = $session->get('userID');
-
- if (!$contactID) {
- CRM_Utils_ReCAPTCHA::enableCaptchaOnForm($this);
- }
-
$this->addButtons([
[
'type' => 'next',