You are here

multidomain_google_analytics.module in Multidomain Google Analytics 8

Same filename and directory in other branches
  1. 8.2 multidomain_google_analytics.module

Drupal Module: Multidomain Google Analytics.

File

multidomain_google_analytics.module
View source
<?php

/**
 * @file
 * Drupal Module: Multidomain Google Analytics.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function multidomain_google_analytics_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.multidomain_google_analytics':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Admin can add Google Analytics tracking system for multidomain website.') . '</p>';
      return $output;
    case 'multidomain_google_analytics.google_admin_settings_form':
      return t('<a href=":ga_url">Google Analytics</a> is a free (registration required) website traffic and marketing effectiveness service.', [
        ':ga_url' => 'http://www.google.com/analytics/',
      ]);
  }
}

Functions