You are here

function og_role_watchdog_install in Role Watchdog 7.2

Same name and namespace in other branches
  1. 6.2 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_install()
  2. 6 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 48
Install file for Role watchdog.

Code

function og_role_watchdog_install() {

  // Set our weight to be lower than role_watchdog so that our hook_user is called first.
  db_update('system')
    ->fields(array(
    'weight' => '-1',
  ))
    ->condition('type', 'module')
    ->condition('name', 'og_role_watchdog')
    ->execute();
}