You are here

function spamspan_help in SpamSpan filter 8

Same name and namespace in other branches
  1. 8.2 spamspan.module \spamspan_help()
  2. 5 spamspan.module \spamspan_help()
  3. 6 spamspan.module \spamspan_help()
  4. 7 spamspan.module \spamspan_help()

Implements hook_help().

File

./spamspan.module, line 23
Implements the spamspan technique for hiding email addresses from spambots.

Code

function spamspan_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.spamspan':
      return t('<p>The SpamSpan module obfuscates email addresses to help prevent spambots from collecting them. See the <a href="@url">Spamspan test page</a>.</p>', [
        '@url' => Url::fromRoute('spamspan.test')
          ->toString(),
      ]);
  }
}