You are here

function blocked_ips_expire_help in Blocked IPs Expire 7

Implements hook_help().

File

./blocked_ips_expire.module, line 142
Hooks, callbacks and helper functions for the blocked_ips_expire module.

Code

function blocked_ips_expire_help($path, $arg) {
  $result = db_query("SELECT COUNT(ip) FROM {blocked_ips}");
  $number_of_rows = $result
    ->fetchField();
  switch ($path) {
    case 'admin/config/people/ip-blocking':
      return '<h3>' . t("The total number of blocked IPs is: @number_of_rows", array(
        '@number_of_rows' => $number_of_rows,
      )) . '</h3>';
  }
}