You are here

disclaimer.module in Disclaimer 8

Same filename and directory in other branches
  1. 6.2 disclaimer.module
  2. 6 disclaimer.module
  3. 7 disclaimer.module

Contains disclaimer.module.

File

disclaimer.module
View source
<?php

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

/**
 * Implements hook_help().
 */
function disclaimer_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.disclaimer':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Watches over users visiting sections of the site and displays disclaimer when section is entered.') . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
disclaimer_help Implements hook_help().