You are here

tracking_code.module in Tracking Code 8

Same filename and directory in other branches
  1. 7 tracking_code.module

File

tracking_code.module
View source
<?php

/**
 * @file
 * Contains tracking_code.module..
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function tracking_code_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the tracking_code module.
    case 'help.page.tracking_code':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Provides an interface for adding tracking code snippets into pages with controls for visibility.') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function tracking_code_theme() {
  $theme = [];
  return $theme;
}

Functions

Namesort descending Description
tracking_code_help Implements hook_help().
tracking_code_theme Implements hook_theme().