You are here

httpswww.module in HTTPS and WWW Redirect 2.x

Same filename and directory in other branches
  1. 8 httpswww.module

File

httpswww.module
View source
<?php

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 = '<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().