You are here

function ip_ranges_menu in IP Ranges 7

Same name and namespace in other branches
  1. 7.2 ip_ranges.module \ip_ranges_menu()

Implements hook_menu().

File

./ip_ranges.module, line 6

Code

function ip_ranges_menu() {
  $items = array();
  $items['admin/config/people/ip-ranges'] = array(
    'title' => 'IP range bans',
    'description' => 'Manage banned IP addresse ranges.',
    'page callback' => 'ip_ranges_page',
    'access arguments' => array(
      'ban IP address ranges',
    ),
    'file' => 'ip_ranges.admin.inc',
    'weight' => 10,
  );
  $items['admin/config/people/ip-ranges/delete/%'] = array(
    'title' => 'Delete IP range',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ip_ranges_delete',
      5,
    ),
    'access arguments' => array(
      'ban IP address ranges',
    ),
    'file' => 'ip_ranges.admin.inc',
  );
  $items['admin/config/people/ip-ranges/whitelist_own'] = array(
    'title' => 'Whitelist your own IP',
    'page callback' => 'ip_ranges_whitelist_own_address',
    'access arguments' => array(
      'ban IP address ranges',
    ),
  );
  return $items;
}