function autotag_install in Taxonomy Autotagger 6
Same name and namespace in other branches
- 6.2 autotag.install \autotag_install()
Implementation of hook_install
File
- ./
autotag.install, line 5
Code
function autotag_install() {
// Create tables.
drupal_install_schema('autotag');
//Get taxonomy's weight, and increase it by ten
$taxonomy_weight = array_pop(db_fetch_array(db_query("SELECT weight FROM {system} WHERE name='taxonomy'")));
db_query("UPDATE {system} SET weight=%d WHERE name='autotag'", $taxonomy_weight + 10);
}