counter.module in Counter 8
Same filename and directory in other branches
The counter module used for displaying Site Counter.
File
counter.moduleView 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
Name | Description |
---|---|
counter_help | Implements hook_help(). |
counter_views_api | Implements hook_views_api(). |