function restrict_by_ip_menu in Restrict Login or Role Access by IP Address 6.2
Same name and namespace in other branches
- 5 restrict_by_ip.module \restrict_by_ip_menu()
- 6.3 restrict_by_ip.module \restrict_by_ip_menu()
- 6 restrict_by_ip.module \restrict_by_ip_menu()
- 7.3 restrict_by_ip.module \restrict_by_ip_menu()
Implementation of hook_menu() Add a menu item to the ddminister >> site building menu for displaying the restrict_by_ip
File
- ./
restrict_by_ip.module, line 130 - Allows the admin to select which ip addresses role or a user can login from for this site Some of the code below is taken from the cck_ipaddress_module
Code
function restrict_by_ip_menu() {
$items = array();
$items['admin/settings/restrict_by_ip'] = array(
'title' => t('Restrict by IP settings'),
'description' => t('Limit the IP address a user is allowed to login from.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'restrict_by_ip_settings',
),
'access arguments' => array(
'administer restrict by ip',
),
);
return $items;
}