You are here

adstxt.module in AdsTxt 8

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

File

adstxt.module
View source
<?php

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function adstxt_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.adstxt':
      return '<p>' . t('In a multisite environment, there is no mechanism for having a separate ads.txt file for each site. This module addresses that need by letting you administer the ads.txt file from the settings interface.') . '</p>';
    case 'adstxt.admin_settings_form':
      return t('See <a href="https://iabtechlab.com/ads-txt/">https://iabtechlab.com/ads-txt/</a> for more information concerning how to write your <a href="@adstxt">ads.txt</a> file.', [
        '@adstxt' => base_path() . 'ads.txt',
      ]);
  }
}

Functions

Namesort descending Description
adstxt_help Implements hook_help().