You are here

function recaptcha_mailhide_help in reCAPTCHA 6

Same name and namespace in other branches
  1. 8 recaptcha_mailhide/recaptcha_mailhide.module \recaptcha_mailhide_help()
  2. 5.2 recaptcha_mailhide.module \recaptcha_mailhide_help()
  3. 7 recaptcha_mailhide/recaptcha_mailhide.module \recaptcha_mailhide_help()

Implements hook_help().

File

recaptcha_mailhide/recaptcha_mailhide.module, line 11
Protects email addresses using the reCAPTCHA web service.

Code

function recaptcha_mailhide_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/modules#name':
      $output .= t('reCAPTCHA');
      break;
    case 'admin/modules#description':
      $output .= t('Uses the <a href="@url">reCAPTCHA</a> web service to protect email addresses.', array(
        '@url' => url('http://www.google.com/recaptcha/mailhide/apikey'),
      ));
      break;
    case 'admin/help#recaptcha':
      $output .= '<p>' . t('Uses the reCAPTCHA web service to protect email addresses. For more information on what reCAPTCHA Mailhide is, visit <a href="@url">the official website</a>.', array(
        '@url' => url('https://www.google.com/recaptcha/mailhide/'),
      )) . '</p><h3>' . t('Configuration') . '</h3><p>' . t('Head over to the <a href="@inputformats">input format settings</a> and add the <a href="@url">reCAPTCHA Mailhide</a> input filter to hide posted emails.', array(
        '@inputformats' => url('admin/settings/filters'),
        '@url' => url('http://www.google.com/recaptcha/mailhide/apikey'),
      )) . '</p>';
      break;
  }
  return $output;
}