You are here

function bb2_install in Bad Behavior 5.2

Same name and namespace in other branches
  1. 6.2 badbehavior.module \bb2_install()
  2. 6 badbehavior.module \bb2_install()
  3. 7.2 badbehavior.module \bb2_install()
1 call to bb2_install()
badbehavior_init in ./badbehavior.module

File

./badbehavior.module, line 230

Code

function bb2_install() {
  if (variable_get('badbehavior_db_installed', 0) != BB2_VERSION) {
    bb2_db_query(bb2_table_structure(db_prefix_tables('{bad_behavior_log}')));
    variable_set('badbehavior_db_installed', BB2_VERSION);
  }
}