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