You are here

function recaptcha_help in reCAPTCHA 8.2

Same name and namespace in other branches
  1. 8.3 recaptcha.module \recaptcha_help()
  2. 8 recaptcha.module \recaptcha_help()
  3. 5.2 recaptcha.module \recaptcha_help()
  4. 6.2 recaptcha.module \recaptcha_help()
  5. 6 recaptcha.module \recaptcha_help()
  6. 7.2 recaptcha.module \recaptcha_help()
  7. 7 recaptcha.module \recaptcha_help()

Implements hook_help().

File

./recaptcha.module, line 23
Verifies if user is a human without necessity to solve a CAPTCHA.

Code

function recaptcha_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.recaptcha':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Google <a href=":url">reCAPTCHA</a> 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.', [
        ':url' => 'https://www.google.com/recaptcha',
      ]) . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Protects and defends') . '</dt>';
      $output .= '<dd>' . 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.') . '</dd>';
      $output .= '</dl>';
      $output .= '<h3>' . t('Configuration') . '</h3>';
      $output .= '<ol>';
      $output .= '<li>' . t('Enable reCAPTCHA and CAPTCHA modules in Adminstration > Extend') . '</li>';
      $output .= '<li>' . t('You will now find a reCAPTCHA tab in the CAPTCHA administration page available at: Administration > Configuration > People > CAPTCHA module settings > reCAPTCHA') . '</li>';
      $output .= '<li>' . t('Register your web site at <a href=":url">https://www.google.com/recaptcha/admin/create</a>', [
        ':url' => 'https://www.google.com/recaptcha/admin/create',
      ]) . '</li>';
      $output .= '<li>' . t('Input the site and private keys into the reCAPTCHA settings.') . '</li>';
      $output .= '<li>' . t('Visit the Captcha administration page and set where you want the reCAPTCHA form to be presented: Administration > Configuration > People > CAPTCHA module settings') . '</li>';
      $output .= '</ol>';
      return $output;
  }
}