You are here

counter.module in Counter 8

Same filename and directory in other branches
  1. 5 counter.module
  2. 6.2 counter.module
  3. 6 counter.module
  4. 7 counter.module

The counter module used for displaying Site Counter.

File

counter.module
View source
<?php

/**
 * @file
 * The counter module used for displaying Site Counter.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function counter_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.counter':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The counter module used for displaying Site Counter') . ' </p>';
      return $output;
  }
}

/**
 * Implements hook_views_api().
 */
function counter_views_api() {
  return array(
    'api' => views_api_version(),
  );
}

Functions

Namesort descending Description
counter_help Implements hook_help().
counter_views_api Implements hook_views_api().