You are here

function single_page_site_help in Single Page Site 7

Same name and namespace in other branches
  1. 8 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($path, $arg) {
  switch ($path) {
    case 'admin/help#single_page_site':
      $output = file_get_contents(drupal_get_path('module', 'single_page_site') . '/README.txt');
      return module_exists('markdown') ? module_invoke('markdown', 'filter', 'process', 0, -1, $output) : '<pre>' . $output . '</pre>';
  }
}