You are here

function httpbl_menu in http:BL 6.2

Same name and namespace in other branches
  1. 5 httpbl.module \httpbl_menu()
  2. 6 httpbl.module \httpbl_menu()
  3. 7 httpbl.module \httpbl_menu()

Implementation of hook_menu().

File

./httpbl.module, line 61
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function httpbl_menu() {
  $items['httpbl/whitelist'] = array(
    'title' => 'Request whitelisting',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'httpbl_request_whitelist',
    ),
    'access callback' => 'httpbl_whitelist_access',
    'access arguments' => array(),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/httpbl'] = array(
    'title' => 'http:BL',
    'description' => 'Manage http:BL settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'httpbl_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}