Skip to content
Snippets Groups Projects
Commit 9d5e5075 authored by João Ventura's avatar João Ventura Committed by Joao Ventura
Browse files

Issue #3221511 by jcnventura: Coding standards

parent ef56729f
Branches 7.x-1.x
No related tags found
No related merge requests found
<?php
/**
* @file
* Main module file.
......@@ -9,10 +10,12 @@
*/
function letsencrypt_challenge_help($path, $args) {
switch ($path) {
// Main module help for the block module
// 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 letsecnrypt 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>';
break;
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>';
}
}
......@@ -23,8 +26,8 @@ function letsencrypt_challenge_menu() {
$items = array();
$items['admin/config/system/letsencrypt_challenge'] = array(
'title' => 'Let\'s Encrypt challenge',
'description' => 'Configure Let\'s Encrypt challenge',
'title' => "Let's Encrypt challenge",
'description' => "Configure Let's Encrypt challenge",
'page callback' => 'drupal_get_form',
'page arguments' => array('letsencrypt_challenge_settings'),
'access arguments' => array('administer letsencrypt challenge'),
......@@ -32,7 +35,7 @@ function letsencrypt_challenge_menu() {
);
$items['.well-known/acme-challenge'] = array(
'title' => 'Let\'s Encrypt challenge',
'title' => "Let's Encrypt challenge",
'description' => 'Outputs configured certbot challenge',
'page callback' => 'letsencrypt_challenge_challenge',
'access callback' => TRUE,
......@@ -47,9 +50,9 @@ function letsencrypt_challenge_menu() {
*/
function letsencrypt_challenge_permission() {
return array(
'administer letsencrypt challenge' => array(
'title' => t('Adminiter Let\'s Encrypt challenge'),
'description' => t('Manual configuration of a Let\'s Encrypt challenge response.'),
'administer letsencrypt challenge' => array(
'title' => t("Administer Let's Encrypt challenge"),
'description' => t("Manual configuration of a Let's Encrypt challenge response."),
),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment