You are here

function spaces_og_enable in Spaces 6.2

Same name and namespace in other branches
  1. 5.2 spaces_og.install \spaces_og_enable()
  2. 6.3 spaces_og/spaces_og.module \spaces_og_enable()
  3. 6 spaces_og/spaces_og.install \spaces_og_enable()
  4. 7.3 spaces_og/spaces_og.module \spaces_og_enable()
  5. 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);
}