You are here

function xmlsitemap_engines_update_6108 in XML sitemap 6

Set last submitted timestamp variable if non existent.

File

xmlsitemap_engines/xmlsitemap_engines.install, line 95
Installation file for XML sitemap engines.

Code

function xmlsitemap_engines_update_6108() {
  $ret = array();
  $submitted = variable_get('xmlsitemap_engines_cron_timestamp_submit', FALSE);
  if (!$submitted) {
    variable_set('xmlsitemap_engines_cron_timestamp_submit', 0);
    $ret[] = array(
      'success' => TRUE,
      'query' => 'Variable "xmlsitemap_engines_cron_timestamp_submit" has been created.',
    );
  }
  return $ret;
}