You are here

function badbehavior_init in Bad Behavior 6.2

Same name and namespace in other branches
  1. 5.2 badbehavior.module \badbehavior_init()
  2. 6 badbehavior.module \badbehavior_init()
  3. 7.2 badbehavior.module \badbehavior_init()

Implements hook_init().

Stops Bad Behavior from loading on all pages if we are logged in.

File

./badbehavior.module, line 76
Integrates Bad Behavior with Drupal

Code

function badbehavior_init() {
  if (!$GLOBALS['user']->uid) {
    badbehavior_start_badbehavior();
  }
}