You are here

function xmlsitemap_engines_update_6107 in XML sitemap 6

Update variables from Live Search to Bing.

File

xmlsitemap_engines/xmlsitemap_engines.install, line 74
Installation file for XML sitemap engines.

Code

function xmlsitemap_engines_update_6107() {
  $variables = array(
    'submit' => FALSE,
    'url' => 'http://webmaster.live.com/ping.aspx?siteMap=[sitemap]',
    'verify' => '',
    'verify_string' => '',
  );
  foreach ($variables as $variable => $default) {
    $value = variable_get('xmlsitemap_engines_live_' . $variable, $default);
    if ($variable == 'url' && $value == $default) {
      $value = 'http://www.bing.com/webmaster/ping.aspx?siteMap=[sitemap]';
    }
    variable_set('xmlsitemap_engines_bing_' . $variable, $value);
    variable_del('xmlsitemap_engines_live_' . $variable);
  }
  return array();
}