You are here

function sticky_help in Sticky 8

Same name and namespace in other branches
  1. 2.0.x sticky.module \sticky_help()

Implements hook_help().

File

./sticky.module, line 13
Contains sticky.module..

Code

function sticky_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the sticky module.
    case 'help.page.sticky':
      $output = file_get_contents(drupal_get_path('module', 'sticky') . '/README.txt');
      return '<pre>' . $output . '</pre>';
    default:
  }
}