function blocked_ips_expire_menu in Blocked IPs Expire 7
Implements hook_menu().
File
- ./
blocked_ips_expire.module, line 13 - Hooks, callbacks and helper functions for the blocked_ips_expire module.
Code
function blocked_ips_expire_menu() {
$items = array();
// The blocked IPs expire preference page.
$items['admin/config/people/blocked_ips_expire'] = array(
'title' => 'Blocked IPs expiry',
'description' => 'Manage how long IP addresses get blocked for by default.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'_blocked_ips_expire_preferences',
),
'access arguments' => array(
'block IP addresses',
),
'file' => 'blocked_ips_expire.admin.inc',
);
// A default local task, which happens to be the blocked IPs expire preference
// page.
$items['admin/config/people/blocked_ips_expire/config'] = array(
'title' => 'Config',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -2,
);
// Assign expiry times to IP addresses in bulk.
$items['admin/config/people/blocked_ips_expire/bulk_assign'] = array(
'title' => 'Bulk-assign expiry times',
'description' => 'Add expiry times to blocked IP addresses without them.',
'type' => MENU_LOCAL_TASK,
'weight' => -1,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'_blocked_ips_expire_bulk_assign',
),
'access arguments' => array(
'block IP addresses',
),
'file' => 'blocked_ips_expire.bulk_assign.inc',
);
return $items;
}