function taxonomy_defaults_install in Taxonomy Defaults 5
Same name and namespace in other branches
- 6.2 taxonomy_defaults.install \taxonomy_defaults_install()
- 6 taxonomy_defaults.install \taxonomy_defaults_install()
- 7 taxonomy_defaults.install \taxonomy_defaults_install()
Hook sets taxonomy_defaults 'weight' to -1. This ensures that it's hook_form_alter runs before taxonomy
File
- ./
taxonomy_defaults.install, line 15
Code
function taxonomy_defaults_install() {
$ret = array();
$ret[] = db_query("UPDATE {system} SET weight = -1 WHERE name = 'taxonomy_defaults'");
return $ret;
}