You are here

function xmlsitemap_engines_update_6100 in XML sitemap 6

Implementation of hook_update_N().

File

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

Code

function xmlsitemap_engines_update_6100() {
  variable_del('xmlsitemap_engines_cron_submit_delay');
  $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]',
    'live_url' => 'http://webmaster.live.com/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);
  }
  variable_set('xmlsitemap_engines_cron_submit_frequency', 3600);
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Updated the module settings successfully.',
  );
  return $ret;
}