You are here

function recaptcha_v3_help in reCAPTCHA v3 7

Same name and namespace in other branches
  1. 8 recaptcha_v3.module \recaptcha_v3_help()

Implements hook_help().

File

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

Code

function recaptcha_v3_help($path, $arg) {
  switch ($path) {

    // Main module help for the block module
    case 'admin/help#recaptcha_v3':
    case 'admin/config/people/captcha/recaptcha-v3':
      $output = '<p>' . t('reCAPTCHA v3 returns a score for each request without user friction. The score is based on interactions with your site and enables you to take an appropriate action for your site. Register reCAPTCHA v3 keys <a href="@keys_link" target="_blank">here</a>. This page explains how to enable and customize reCAPTCHA v3 on your webpage.', array(
        '@keys_link' => 'https://g.co/recaptcha/v3',
      )) . '</p>';
      $output .= '<p>' . t('At first you need to create at least one action: populate action name<sup>1</sup>, choose score threshold<sup>2</sup> and select action on user verification fail<sup>3</sup>.') . '</p>';
      $items = array(
        t('reCAPTCHA v3 introduces a new concept: actions. Actions name will be displayed in detailed break-down of data for your top ten actions in the <a href="@admin_console_link" target="_blank">admin console</a>', array(
          '@admin_console_link' => 'https://g.co/recaptcha/admin',
        )),
        t('reCAPTCHA v3 returns a score (1.0 is very likely a good interaction, 0.0 is very likely a bot). Based on the score, you can take variable action in the context of your site.'),
        t('You could specify additional validation challenge, for failed recaptcha v3 validations. If you leave empty "Default challenge type" and "Challenge" for concrete action, user could not submit form if his validation failed.'),
      );
      $output .= theme('item_list', array(
        'items' => $items,
        'type' => 'ol',
      ));
      return $output;
  }
}