You are here

function xmlsitemap_node_update_6201 in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_update_6201()

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

File

xmlsitemap_node/xmlsitemap_node.install, line 112
Install and uninstall schema and functions for the xmlsitemap_node module.

Code

function xmlsitemap_node_update_6201() {
  $ret = array();
  if (db_table_exists('xmlsitemap_node')) {
    db_drop_table($ret, 'xmlsitemap_node');
  }
  db_query("DELETE FROM {variable} WHERE name LIKE 'xmlsitemap_node_type_priority_%%'");
  variable_del('xmlsitemap_node_promote_priority');
  variable_del('xmlsitemap_node_comment_priority');
  $ret[] = update_sql("UPDATE {system} SET weight = 0 WHERE type = 'module' AND name = 'xmlsitemap_node'");
  return $ret;
}