function httpbl_menu in http:BL 5
Same name and namespace in other branches
- 6.2 httpbl.module \httpbl_menu()
- 6 httpbl.module \httpbl_menu()
- 7 httpbl.module \httpbl_menu()
Implementation of hook_menu().
Return value
array
File
- ./
httpbl.module, line 29 - Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.
Code
function httpbl_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'httpbl/whitelist',
'title' => t('Request whitelisting'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'httpbl_request_whitelist',
),
'type' => MENU_CALLBACK,
'access' => TRUE,
);
$items[] = array(
'path' => 'admin/settings/httpbl',
'title' => t('http:BL'),
'description' => t('Manage http:BL settings.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'httpbl_admin_settings',
),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM,
);
}
else {
_httpbl_check();
}
return $items;
}