You are here

function xmlsitemap_engines_install in XML sitemap 6.2

Same name and namespace in other branches
  1. 5 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_install()
  2. 6 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_install()
  3. 7.2 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_install()

Implements hook_install().

File

xmlsitemap_engines/xmlsitemap_engines.install, line 11
Install, update and uninstall functions for the xmlsitemap_engines module.

Code

function xmlsitemap_engines_install() {

  // Set this module's weight to 1 so xmlsitemap_engines_cron() runs after
  // the sitemap has been generated in xmlsitemap_cron().
  db_query("UPDATE {system} SET weight = 2 WHERE type = 'module' AND name = 'xmlsitemap_engines'");
}