function spaces_taxonomy_enable in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_enable()
- 7 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_enable()
Implementaton of hook_enable().
File
- spaces_taxonomy/
spaces_taxonomy.module, line 6
Code
function spaces_taxonomy_enable() {
// Weight spaces_taxonomy to be after taxonomy.
$weight = db_result(db_query("SELECT weight FROM {system} WHERE type = 'module' AND name = 'taxonomy'"));
db_query("UPDATE {system} SET weight = %d WHERE name = 'spaces_taxonomy'", $weight + 1);
}