You are here

function outdatedbrowser_help in Outdated Browser 7

Implements hook_help().

File

./outdatedbrowser.module, line 41
Outdated Browser module file.

Code

function outdatedbrowser_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help#outdatedbrowser':
      $output = file_get_contents(drupal_get_path('module', 'outdatedbrowser') . '/README.txt');
      if (module_exists('markdown')) {
        $output = filter_xss_admin(module_invoke('markdown', 'filter', 'process', 0, -1, $output));
      }
      else {
        $output = '<pre>' . check_plain($output) . '</pre>';
      }
  }
  return $output;
}