You are here

function xmlsitemap_update_6139 in XML sitemap 6

Implementation of hook_update_N().

File

./xmlsitemap.install, line 487
Installation file for XML sitemap.

Code

function xmlsitemap_update_6139() {
  $ret[] = update_sql("DELETE FROM {system} WHERE name IN ('xmlsitemap_file', 'xmlsitemap_helper') AND type = 'module'");
  if (db_table_exists('xmlsitemap_file')) {
    db_drop_table($ret, 'xmlsitemap_file');
  }
  module_rebuild_cache();
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Updated the modules list successfully.',
  );
  return $ret;
}