You are here

hook_event_dispatcher.module in Hook Event Dispatcher 8.2

Same filename and directory in other branches
  1. 8 hook_event_dispatcher.module
  2. 3.x hook_event_dispatcher.module

Hook event dispatcher module.

File

hook_event_dispatcher.module
View source
<?php

/**
 * @file
 * Hook event dispatcher module.
 */

/**
 * Implements hook_help().
 *
 * {@inheritdoc}
 */
function hook_event_dispatcher_help(string $routeName) {
  if ($routeName === 'help.page.hook_event_dispatcher') {
    $path = drupal_get_path('module', 'hook_event_dispatcher');
    $output = file_get_contents($path . '/README.md');
    return '<pre>' . $output . '</pre>';
  }
  return '';
}

Functions

Namesort descending Description
hook_event_dispatcher_help Implements hook_help().