You are here

xmlsitemap_engines.install in XML sitemap 5.2

Install file for XML sitemap: Engines

File

xmlsitemap_engines/xmlsitemap_engines.install
View source
<?php

/**
 * @file
 * Install file for XML sitemap: Engines
 */

/*****************************************************************************
 * Drupal hooks.
 ****************************************************************************/

/**
 * Implementation of hook_update_N().
 */
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',
    ),
  );
}

/**
 * Implementation of hook_uninstall().
 */
function xmlsitemap_engines_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'xmlsitemap\\_engines\\_'");
}

Functions

Namesort descending Description
xmlsitemap_engines_uninstall Implementation of hook_uninstall().
xmlsitemap_engines_update_1 Implementation of hook_update_N().