xmlsitemap_engines.install 937 Bytes
Newer Older
Darren Oh's avatar
Darren Oh committed
1 2 3
<?php
// $Id$

4
/**
5 6 7 8 9 10
 * @file
 * Install, update and uninstall functions for the xmlsitemap_engines module.
 */

/**
 * Implements hook_install().
11 12
 */
function xmlsitemap_engines_install() {
13 14
  // Set this module's weight to 1 so xmlsitemap_engines_cron() runs after
  // the sitemap has been generated in xmlsitemap_cron().
15 16 17 18 19
  db_update('system')
    ->fields(array('weight' => 2))
    ->condition('type', 'module')
    ->condition('name', 'xmlsitemap_engines')
    ->execute();
20 21
}

Darren Oh's avatar
Darren Oh committed
22
/**
23
 * Implements hook_uninstall().
Darren Oh's avatar
Darren Oh committed
24 25
 */
function xmlsitemap_engines_uninstall() {
26 27 28 29 30
  variable_del('xmlsitemap_engines_engines');
  variable_del('xmlsitemap_engines_custom_urls');
  variable_del('xmlsitemap_engines_minimum_lifetime');
  variable_del('xmlsitemap_engines_submit_last');
  variable_del('xmlsitemap_engines_submit_updated');
Darren Oh's avatar
Darren Oh committed
31 32
}

33
/**
34
 * Implements hook_update_last_removed().
35
 */
36 37
function xmlsitemap_engines_update_last_removed() {
  return 6201;
38
}