simple_adsense.module in Simple AdSense 1.0.x
Same filename and directory in other branches
Contains simple_adsense.module..
File
simple_adsense.moduleView 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
Name | Description |
---|---|
simple_adsense_help | Implements hook_help(). |
simple_adsense_theme | Implements hook_theme(). |