You are here

function timefield_help in Timefield 1.0.x

Implements hook_help().

File

./timefield.module, line 557
Contains timefield.module.

Code

function timefield_help($route_name, RouteMatchInterface $route_match) {
  if ($route_name === 'help.page.timefield') {
    $path = __DIR__ . '/README.md';
    if (file_exists($path)) {
      return '<pre>' . file_get_contents($path) . '</pre>';
    }
  }
  return NULL;
}