You are here

function xmlsitemap_engines_update_6110 in XML sitemap 6

File

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

Code

function xmlsitemap_engines_update_6110() {
  $variables = array(
    'ask_url' => 'http://submissions.ask.com/ping?sitemap=[sitemap]',
    'google_url' => 'http://www.google.com/webmasters/tools/ping?sitemap=[sitemap]',
    'moreover_url' => 'http://api.moreover.com/ping?u=[sitemap]',
    'bing_url' => 'http://www.bing.com/webmaster/ping.aspx?siteMap=[sitemap]',
    'yahoo_url' => 'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=[sitemap]',
  );
  foreach ($variables as $variable => $value) {
    variable_set('xmlsitemap_engines_' . $variable, $value);
  }
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Updated the module settings successfully.',
  );
  return $ret;
}