You are here

function single_page_site_help in Single Page Site 2.x

Same name and namespace in other branches
  1. 8 single_page_site.module \single_page_site_help()
  2. 7 single_page_site.module \single_page_site_help()
  3. 2.0.x single_page_site.module \single_page_site_help()

Implements hook_help().

File

./single_page_site.module, line 15
Module hooks file for Single Page Site.

Code

function single_page_site_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.single_page_site':
      $output = file_get_contents(drupal_get_path('module', 'single_page_site') . '/README.txt');
      return '<pre>' . $output . '</pre>';
  }
}