You are here

function xssprotection_help in XSS Protection 7

Implements hook_help().

File

./xssprotection.module, line 68
Module for managing XSS vulnerability.

Code

function xssprotection_help($path, $arg) {
  switch ($path) {
    case 'admin/help#xssprotection':
      $filepath = dirname(__FILE__) . '/README.md';
      if (file_exists($filepath)) {
        $readme = file_get_contents($filepath);
      }
      else {
        $filepath = dirname(__FILE__) . '/README.txt';
        if (file_exists($filepath)) {
          $readme = file_get_contents($filepath);
        }
      }
      if (!isset($readme)) {
        return NULL;
      }
      else {
        $output = '<pre>' . $readme . '</pre>';
      }
      return $output;
  }
}