You are here

function restrict_ip_menu in Restrict IP 7

Same name and namespace in other branches
  1. 6 restrict_ip.module \restrict_ip_menu()
  2. 7.2 restrict_ip.module \restrict_ip_menu()

Implementation of hook_menu()

File

./restrict_ip.module, line 8

Code

function restrict_ip_menu() {
  $menu['admin/config/people/restrict_ip'] = array(
    'title' => 'IP Address Whitelist',
    'description' => 'Set the list of IP addresses that will be allowed to access the site',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'restrict_ip_settings',
    ),
    'access arguments' => array(
      'Administer Restricted IP addresses',
    ),
  );
  $menu['restrict_ip/access_denied'] = array(
    'title' => 'Access Denied',
    'page callback' => 'denied',
  );
  return $menu;
}