diff --git a/recaptcha.module b/recaptcha.module index 380854c5d38c645d4e5b54bb1fb139d4aaf4cf17..71677cd9c226ee6677444e4f9afaf22b34e8565c 100644 --- a/recaptcha.module +++ b/recaptcha.module @@ -20,8 +20,24 @@ require_once dirname(__FILE__) . '/src/ReCaptcha/RequestMethod/Drupal8Post.php'; */ function recaptcha_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { - case 'recaptcha.admin_settings_form': - return t('Google reCAPTCHA is a free service to protect your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive CAPTCHAs to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.', array(':url' => 'https://www.google.com/recaptcha')); + case 'help.page.recaptcha': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('Google reCAPTCHA is a free service to protect your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive CAPTCHAs to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.', array(':url' => 'https://www.google.com/recaptcha')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Protects and defends') . '
'; + $output .= '
' . t('reCAPTCHA is built for security. Armed with state of the art technology, it always stays at the forefront of spam and abuse fighting trends. reCAPTCHA is on guard for you, so you can rest easy.') . '
'; + $output .= '
'; + $output .= '

' . t('Configuration') . '

'; + $output .= '
    '; + $output .= '
  1. ' . t('Enable reCAPTCHA and CAPTCHA modules in Adminstration > Extend') . '
  2. '; + $output .= '
  3. ' . t('You will now find a reCAPTCHA tab in the CAPTCHA administration page available at: Administration > Configuration > People > CAPTCHA module settings > reCAPTCHA') . '
  4. '; + $output .= '
  5. ' . t('Register your web site at https://www.google.com/recaptcha/admin/create', array(':url' => 'https://www.google.com/recaptcha/admin/create')) . '
  6. '; + $output .= '
  7. ' . t('Input the site and private keys into the reCAPTCHA settings.') . '
  8. '; + $output .= '
  9. ' . t('Visit the Captcha administration page and set where you want the reCAPTCHA form to be presented: Administration > Configuration > People > CAPTCHA module settings') . '
  10. '; + $output .= '
'; + return $output; } }