You are here

function watchdog_prune_help in Watchdog Prune 8

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

Implements hook_help().

File

./watchdog_prune.module, line 13
Description: watchdog_prune.module.

Code

function watchdog_prune_help($route_name, $route_match) {
  if ($route_name == 'help.page.watchdog_prune') {
    $output = file_get_contents(drupal_get_path('module', 'watchdog_prune') . '/README.txt');
    $output = '<pre>' . $output . '</pre>';
    return [
      '#type' => 'markup',
      '#markup' => $output,
    ];
  }
}