You are here

function adstxt_help in AdsTxt 7

Same name and namespace in other branches
  1. 8 adstxt.module \adstxt_help()

Implements hook_help().

File

./adstxt.module, line 6

Code

function adstxt_help($path, $arg) {
  switch ($path) {
    case 'admin/help#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 'admin/config/system/adstxt':
      if (file_exists(DRUPAL_ROOT . '/ads.txt')) {
        drupal_set_message(t('One or more problems have been detected with the AdsTxt configuration. Check the <a href="@status">status report</a> for more information.', array(
          '@status' => url('admin/reports/status'),
        )), 'warning');
      }
      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.', array(
        '@adstxt' => base_path() . 'ads.txt',
      ));
  }
}