Skip to content
Snippets Groups Projects
Commit 10120076 authored by Ravi Kumar Singh's avatar Ravi Kumar Singh Committed by LeoPathu
Browse files

Issue #3105144 by rksyravi, leopathu: Implement hook_help() and also add...

Issue #3105144 by rksyravi, leopathu: Implement hook_help() and also add README.txt or README.md file
parent 3c9a4f2d
Branches
Tags
No related merge requests found
<?php
use Drupal\Core\Routing\RouteMatchInterface;
/**
* @file
* Attaches the Browser Class JS to every page.
......@@ -22,6 +24,18 @@ define('BROWSERCLASS_ALL',
BROWSERCLASS_OTHER_CLASSES
);
/**
* Implements hook_help().
*/
function browserclass_help($route_name, RouteMatchInterface $route_match) {
if ($route_name == 'help.page.browserclass') {
// Main module help for the browserclass module.
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This small module helps theme-developers to deal with cross-browser compatibility. It makes easier to handle different types of non-widespread browsers just as much as it helps with using different versions of Internet Explorer.') . '</p>';
return $output;
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment