You are here

function httpbl_menu in http:BL 7

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

Implementation of hook_menu().

File

./httpbl.module, line 65
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,
  );

  // Let's use a different menu for Drupal 7 and place it near core IP address blocking
  $items['admin/config/people/httpbl'] = array(
    'title' => 'Http:BL',
    'description' => 'Manage http:BL and Honey Pot settings for limiting malicious traffic.',
    'file' => 'httpbl.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'httpbl_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'admin httpbl',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}