You are here

function robotstxt_update_7104 in RobotsTxt 7

Update robots.txt link.

File

./robotstxt.install, line 146
Install, update and uninstall functions for the robotstxt module.

Code

function robotstxt_update_7104() {
  $robotstxt = variable_get('robotstxt');
  $robotstxt = str_replace('http://www.robotstxt.org/wc/robots.html', 'http://www.robotstxt.org/robotstxt.html', $robotstxt);
  variable_set('robotstxt', $robotstxt);
  return t('Updated robotstxt.org link.');
}