You are here

function autoban_help in Automatic IP ban (Autoban) 7

Same name and namespace in other branches
  1. 8 autoban.module \autoban_help()

Implements hook_help().

File

./autoban.module, line 19
Main file for autoban module.

Code

function autoban_help($path, $arg) {
  switch ($path) {
    case 'admin/help#autoban':
      $output = '<p>' . t("This module allows you to automatize IP ban by cron using module rules. You <a href='@admin_url'>create a rule</a> which finds IP in <a href='@dblog_url'>watchlog table entries</a> and module then inserts IP to <a href='@banned_url'>banned IP table</a>.", array(
        '@admin_url' => url('admin/config/people/autoban'),
        '@dblog_url' => url('admin/reports/dblog'),
        '@banned_url' => url('admin/config/people/ip-blocking'),
      )) . '</p>';
      if (_autoban_ip_ranges_enable()) {
        $output .= '<p>' . t("The module can also inserts IP to <a href='@banned_range_url'>IP range bans table</a>.", array(
          '@banned_range_url' => url('admin/config/people/ip-ranges'),
        )) . '</p>';
      }
      if (_autoban_blocked_ips_expire_enable()) {
        $output .= '<p>' . t("The module can also expire inserted IPs using Blocked_ips_expire module.") . '</p>';
      }
      return $output;
  }
}