You are here

function single_page_site_help in Single Page Site 8

Same name and namespace in other branches
  1. 7 single_page_site.module \single_page_site_help()
  2. 2.x 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 10

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>';
  }
}