function community_tags_install in Community Tags 6.2
Same name and namespace in other branches
- 5 community_tags.install \community_tags_install()
- 6 community_tags.install \community_tags_install()
- 7 community_tags.install \community_tags_install()
Implementation of hook_install().
File
- ./
community_tags.install, line 11 - The install file for the community_tags module.
Code
function community_tags_install() {
// Install schema
drupal_install_schema('community_tags');
// Drop module weight so we act after taxonomy.
$weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
db_query("UPDATE {system} SET weight = %d WHERE name = 'community_tags'", $weight + 1);
}