function fail2ban_install in Fail2ban Firewall Integration 7.2
Implements hook_install().
File
- ./
fail2ban.install, line 9
Code
function fail2ban_install() {
// Ensure the module weight is hgher than the syslog module weight.
$weight = db_query('SELECT weight FROM {system} WHERE name = :name', array(
':name' => 'syslog',
))
->fetchField();
db_query('UPDATE {system} SET weight = :weight WHERE name = :name', array(
':weight' => ++$weight,
':name' => 'fail2ban',
));
}