You are here

function xmlsitemap_engines_update_6198 in XML sitemap 6.2

Upgrade the rest of the 6.x-1.x variables.

File

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

Code

function xmlsitemap_engines_update_6198() {

  // Submit when updated variable.
  $value = variable_get('xmlsitemap_engines_submit', 1);
  variable_set('xmlsitemap_engines_submit_updated', $value);

  // Minimum lifetime variable.
  $value = variable_get('xmlsitemap_engines_cron_submit_frequency', 0);
  if ($value == -1) {
    $value = 0;
  }
  variable_set('xmlsitemap_engines_minimum_lifetime', $value);

  // Last submitted variable.
  $value = variable_get('xmlsitemap_engines_cron_timestamp_submit', 0);
  variable_set('xmlsitemap_engines_submit_last', $value);
  return array();
}