Commit 8cc41927 authored by elachlan's avatar elachlan

Merge branch '8.x-1.x' of into 8.x-1.x

parents a5e98ec3 6ded6874
......@@ -131,14 +131,4 @@ function captcha_install() {
// Explain to users that page caching may be disabled.
$config = \Drupal::config('system.performance')->get('');
if ($config != 0) {
->translate('Note that the CAPTCHA module disables <a href="@performance_admin">page caching</a> of pages that include a CAPTCHA challenge.',
'@performance_admin' => Url::fromUri('internal:/admin/config/development/performance')
]), 'warning');
......@@ -56,14 +56,17 @@ function captcha_help($route_name, RouteMatchInterface $route_match) {
':contenttypes' => \Drupal::url('entity.node_type.collection'),
]) . '</p>';
$output .= '<p>' . t('CAPTCHA is a trademark of Carnegie Mellon University.') . '</p>';
return $output;
return ['#markup' => $output];
case 'captcha_settings':
$output = '<p>' . t('A CAPTCHA can be added to virtually each Drupal form. Some default forms are already provided in the form list, but arbitrary forms can be easily added and managed when the option <em>Add CAPTCHA administration links to forms</em> is enabled.') . '</p>';
$output .= '<p>' . t('Users with the <em>Skip CAPTCHA</em> <a href=":perm">permission</a> won\'t be offered a challenge. Be sure to grant this permission to the trusted users (e.g. site administrators). If you want to test a protected form, be sure to do it as a user without the <em>Skip CAPTCHA</em> permission (e.g. as anonymous user).', [
':perm' => \Drupal::url('user.admin_permissions'),
]) . '</p>';
return $output;
$output .= '<p><b>' . t('Note that the CAPTCHA module disables <a href=":performancesettings">page caching</a> of pages that include a CAPTCHA challenge.', [
':performancesettings' => \Drupal::url('system.performance_settings'),
]) . '</b></p>';
return ['#markup' => $output];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment