You are here

httpswww.module in HTTPS and WWW Redirect 8

Same filename and directory in other branches
  1. 2.x httpswww.module

Contains httpswww.module.

File

httpswww.module
View source
<?php

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

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

    // Main module help for the httpswww module.
    case 'help.page.httpswww':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Redirects to HTTPS with or without the "www" prefix.') . '</p>';
      return $output;
    default:
  }
}

Functions

Namesort descending Description
httpswww_help Implements hook_help().