function restrict_ip_menu in Restrict IP 7.2
Same name and namespace in other branches
- 6 restrict_ip.module \restrict_ip_menu()
- 7 restrict_ip.module \restrict_ip_menu()
Implements hook_menu().
File
- ./
restrict_ip.module, line 11 - Holds hooks for the restrict_ip module.
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',
),
'file' => 'includes/restrict_ip.pages.inc',
);
$menu['restrict_ip/access_denied'] = array(
'title' => 'Access Denied',
'page callback' => 'restrict_ip_access_denied_page',
'access callback' => TRUE,
'file' => 'includes/restrict_ip.pages.inc',
'type' => MENU_CALLBACK,
);
return $menu;
}