You are here

function watchdog_prune_help in Watchdog Prune 7

Same name and namespace in other branches
  1. 8.2 watchdog_prune.module \watchdog_prune_help()
  2. 8 watchdog_prune.module \watchdog_prune_help()

Implements hook_help()

File

./watchdog_prune.module, line 43
This is the main module file for watchdog_prune.

Code

function watchdog_prune_help($path, $arg) {
  if ($path == 'admin/help#watchdog_prune') {
    if (current_path() != 'admin/help/watchdog_prune') {
      return TRUE;
    }
    $output = file_get_contents(drupal_get_path('module', 'watchdog_prune') . '/README.txt');
    $output = '<pre>' . check_plain($output) . '</pre>';
    return $output;
  }
}