function xmlsitemap_taxonomy_install in XML sitemap 6
Implementation of hook_install().
File
- xmlsitemap_taxonomy/
xmlsitemap_taxonomy.install, line 76 - Installation file for XML sitemap term.
Code
function xmlsitemap_taxonomy_install() {
if (!db_table_exists('xmlsitemap_taxonomy')) {
drupal_install_schema('xmlsitemap_taxonomy');
}
db_query("UPDATE {system} SET weight = 10 WHERE name = 'xmlsitemap_taxonomy'");
db_query("DELETE FROM {system} WHERE name = 'xmlsitemap_term'");
}