You are here

shield.module in Shield 8

Same filename and directory in other branches
  1. 6 shield.module
  2. 7 shield.module

Contains shield.module.

File

shield.module
View source
<?php

/**
 * @file
 * Contains shield.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function shield_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the shield module.
    case 'help.page.shield':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('It creates a simple shield for the site with HTTP
            basic authentication. It hides the sites, if the user does not know a simple
        username/password.') . '</p>';
      return $output;
    default:
  }
}

Functions

Namesort descending Description
shield_help Implements hook_help().