You are here

function google_analytics_counter_help in Google Analytics Counter 8.3

Same name and namespace in other branches
  1. 6.2 google_analytics_counter.module \google_analytics_counter_help()
  2. 6 google_analytics_counter.module \google_analytics_counter_help()
  3. 7.3 google_analytics_counter.module \google_analytics_counter_help()
  4. 7 google_analytics_counter.module \google_analytics_counter_help()
  5. 7.2 google_analytics_counter.module \google_analytics_counter_help()

Implements hook_help().

File

./google_analytics_counter.module, line 15
Basic functions for this module.

Code

function google_analytics_counter_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.google_analytics_counter':
      $output = file_get_contents(drupal_get_path('module', 'google_analytics_counter') . '/README.md');
      return nl2br($output);
  }
}