You are here

function path2ban_enable in path2ban 7

Same name and namespace in other branches
  1. 7.2 path2ban.install \path2ban_enable()

Implements hook_enable().

File

./path2ban.install, line 19
Install, update and uninstall functions for the path2ban module.

Code

function path2ban_enable() {
  variable_set('site_403', 'path2ban/403');
  variable_set('site_404', 'path2ban/404');
  variable_set('path2ban_list', variable_get('path2ban_list', path2ban_get_default_paths_to_ban()));
}