You are here

function xmlsitemap_engines_update_1 in XML sitemap 5.2

Same name and namespace in other branches
  1. 5 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_update_1()

Implementation of hook_update_N().

File

xmlsitemap_engines/xmlsitemap_engines.install, line 15
Install file for XML sitemap: Engines

Code

function xmlsitemap_engines_update_1() {
  variable_set('xmlsitemap_engines_google_url', 'http://www.google.com/webmasters/tools/ping?sitemap=[sitemap]');
  variable_set('xmlsitemap_engines_yahoo_url', 'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=[sitemap]');
  variable_set('xmlsitemap_engines_ask_url', 'http://submissions.ask.com/ping?sitemap=[sitemap]');
  variable_set('xmlsitemap_engines_live_url', 'http://webmaster.live.com/ping.aspx?siteMap=[sitemap]');
  return array(
    0 => array(
      'success' => TRUE,
      'query' => 'UPDATE MODULE SETTINGS',
    ),
  );
}