function badbehavior_init in Bad Behavior 7.2
Same name and namespace in other branches
- 5.2 badbehavior.module \badbehavior_init()
- 6.2 badbehavior.module \badbehavior_init()
- 6 badbehavior.module \badbehavior_init()
Implements hook_init().
Stops Bad Behavior from loading on all pages if we are running Drupal from the command line (Drush), or if we are logged in.
File
- ./
badbehavior.module, line 85 - Integrates Bad Behavior with Drupal
Code
function badbehavior_init() {
if (!drupal_is_cli() && !$GLOBALS['user']->uid) {
badbehavior_start_badbehavior();
}
}