You are here

function robotstxt_help in RobotsTxt 6

Same name and namespace in other branches
  1. 8 robotstxt.module \robotstxt_help()
  2. 5 robotstxt.module \robotstxt_help()
  3. 7 robotstxt.module \robotstxt_help()

Implementation of hook_help().

File

./robotstxt.module, line 6

Code

function robotstxt_help($path, $arg) {
  switch ($path) {
    case 'admin/help#robotstxt':
      return '<p>' . t('In a multisite environment, there is no mechanism for having a separate robots.txt file for each site. This module addresses that need by letting you administer the robots.txt file from the settings interface.') . '</p>';
      break;
    case 'admin/settings/robotstxt':
      if (file_exists('./robots.txt')) {
        drupal_set_message(t('One or more problems have been detected with the RobotsTxt configuration. Check the <a href="@status">status report</a> for more information.', array(
          '@status' => url('admin/reports/status'),
        )), 'warning');
      }
      return t('See <a href="http://www.robotstxt.org/">http://www.robotstxt.org/</a> for more information concerning how to write your <a href="@robotstxt">robots.txt</a> file.', array(
        '@robotstxt' => base_path() . 'robots.txt',
      ));
      break;
  }
}