You are here

function og_role_watchdog_install in Role Watchdog 6

Same name and namespace in other branches
  1. 6.2 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_install()
  2. 7.2 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_install()
  3. 7 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_install()

Implementation of hook_install().

File

modules/og_role_watchdog/og_role_watchdog.install, line 41
Install file for Role watchdog.

Code

function og_role_watchdog_install() {
  drupal_install_schema('og_role_watchdog');

  // Set our weight to be lower than role_watchdog so that our hook_user is called first.
  db_query("UPDATE {system} SET weight = -1 WHERE type = 'module' AND name = 'og_role_watchdog'");
}