You are here

function badbehavior_boot in Bad Behavior 7.2

Same name and namespace in other branches
  1. 6.2 badbehavior.module \badbehavior_boot()
  2. 6 badbehavior.module \badbehavior_boot()

Implements hook_boot().

Stops Bad Behavior from loading on non-cached pages if we are running Drupal from the command line (Drush), or if we are logged in.

File

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

Code

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