You are here

function xmlsitemap_user_update_6202 in XML sitemap 6.2

Cleanup any remaining 6.x-1.x tables, variables or weights.

File

xmlsitemap_user/xmlsitemap_user.install, line 119
Install and uninstall schema and functions for the xmlsitemap_user module.

Code

function xmlsitemap_user_update_6202() {
  $ret = array();
  if (db_table_exists('xmlsitemap_user')) {
    db_drop_table($ret, 'xmlsitemap_user');
  }
  if (db_table_exists('xmlsitemap_user_role')) {
    db_drop_table($ret, 'xmlsitemap_user_role');
  }
  variable_del('xmlsitemap_user_default_priority');
  $ret[] = update_sql("UPDATE {system} SET weight = 0 WHERE type = 'module' AND name = 'xmlsitemap_user'");
  return $ret;
}