You are here

function letsencrypt_challenge_help in Let's Encrypt Challenge 7

Same name and namespace in other branches
  1. 1.x letsencrypt_challenge.module \letsencrypt_challenge_help()

Implements hook_help().

File

./letsencrypt_challenge.module, line 11
Main module file.

Code

function letsencrypt_challenge_help($path, $args) {
  switch ($path) {

    // Main module help for the block module.
    case 'admin/config/system/letsencrypt_challenge':
      return '<p>' . t('When a <strong>@uri</strong> URL is handled by this module, FILENAME will be looked at <strong>@path</strong>. If found, the content of that file will be output instead of the configured field below. This could potentially help with the use of letsencrypt clients writing the challenge file to the previously mentioned directory.', array(
        '@uri' => url('.well-known/acme-challenge/FILENAME', array(
          'absolute' => TRUE,
        )),
        '@path' => drupal_realpath('public://letsencrypt_challenge/FILENAME'),
      )) . '</p>';
  }
}