function xmlsitemap_taxonomy_update_6201 in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap_taxonomy/xmlsitemap_taxonomy.install \xmlsitemap_taxonomy_update_6201()
Cleanup any remaining 6.x-1.x tables, variables or weights.
File
- xmlsitemap_taxonomy/
xmlsitemap_taxonomy.install, line 115 - Install and uninstall schema and functions for the xmlsitemap_taxonomy module.
Code
function xmlsitemap_taxonomy_update_6201() {
$ret = array();
if (db_table_exists('xmlsitemap_taxonomy')) {
db_drop_table($ret, 'xmlsitemap_taxonomy');
}
if (db_table_exists('xmlsitemap_term')) {
db_drop_table($ret, 'xmlsitemap_term');
}
db_query("DELETE FROM {variable} WHERE name LIKE 'xmlsitemap_taxonomy_vocabulary_priority_%%'");
cache_clear_all('variables', 'cache');
$ret[] = update_sql("UPDATE {system} SET weight = 0 WHERE type = 'module' AND name = 'xmlsitemap_taxonomy'");
return $ret;
}