You are here

function xmlsitemap_engines_install in XML sitemap 7.2

Same name and namespace in other branches
  1. 5 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_install()
  2. 6.2 xmlsitemap_engines/xmlsitemap_engines.install \xmlsitemap_engines_install()
  3. 6 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_update('system')
    ->fields(array(
    'weight' => 2,
  ))
    ->condition('type', 'module')
    ->condition('name', 'xmlsitemap_engines')
    ->execute();
}