You are here

function robotstxt_update_7000 in RobotsTxt 7

Rename menu path 'logout' to 'user/logout' for consistency.

File

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

Code

function robotstxt_update_7000() {

  // Case #337820.
  $robotstxt = variable_get('robotstxt');
  $robotstxt = str_replace('Disallow: /logout/', 'Disallow: /user/logout/', $robotstxt);
  $robotstxt = str_replace('Disallow: /?q=logout/', 'Disallow: /?q=user/logout/', $robotstxt);
  variable_set('robotstxt', $robotstxt);
  return t("Renamed menu path 'logout' to 'user/logout'.");
}