You are here

simple_adsense.module in Simple AdSense 8.0

Same filename and directory in other branches
  1. 7 simple_adsense.module
  2. 1.0.x simple_adsense.module

File

simple_adsense.module
View source
<?php

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

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

    // Main module help for the simple_adsense module.
    case 'help.page.simple_adsense':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Simple Google Adsense Block(s)') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function simple_adsense_theme() {
  return array(
    'simple_adsense' => array(
      'variables' => array(
        'publisher_id' => '',
        'slot' => '',
      ),
      'template' => 'simple-adsense',
    ),
  );
}

Functions

Namesort descending Description
simple_adsense_help Implements hook_help().
simple_adsense_theme Implements hook_theme().