summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruveshTripathi2017-03-20 14:41:34 (GMT)
committerhass2017-03-20 14:41:34 (GMT)
commit8e7eab244f9029b8f25312ad0103b422599b12b6 (patch)
treeb9f8fbd08df91a38e58d5f7fba40ce425abcc970
parent19cee16932175bd3cf33a94930f5a10f300844ec (diff)
Issue #2858299 by dhruveshdtripathi, hass: Help page text
-rw-r--r--recaptcha.module20
1 files changed, 18 insertions, 2 deletions
diff --git a/recaptcha.module b/recaptcha.module
index 380854c..71677cd 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 <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.', array(':url' => 'https://www.google.com/recaptcha'));
+ 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.', array(':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>', array(':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;
}
}