E::ts('reCAPTCHA Settings'), 'name' => 'recaptcha_settings', 'url' => 'civicrm/admin/setting/recaptcha', 'permission' => 'administer CiviCRM', 'operator' => 'OR', 'separator' => 0, ]); _recaptcha_civix_navigationMenu($menu); } /** * Intercept form functions */ function recaptcha_civicrm_buildForm($formName, &$form) { switch ($formName) { case 'CRM_Admin_Form_Generic': if ($form->getSettingPageFilter() !== 'recaptcha') { return; } $helpText = E::ts( 'reCAPTCHA is a free service that helps prevent automated abuse of your site. To use it on public-facing CiviCRM forms: sign up at Google\'s reCaptcha site; enter the provided public and private keys here; then enable reCAPTCHA under Advanced Settings in any Profile.', [ 1 => 'https://www.google.com/recaptcha', ] ) . '
' . E::ts('Only the reCAPTCHA v2 checkbox type is supported.') . ''; \Civi::resources() ->addMarkup('
' . $helpText . '
', [ 'weight' => -1, 'region' => 'page-body', ]); } }