function ip_login_menu in IP Login 6.2
Same name and namespace in other branches
- 5 ip_login.module \ip_login_menu()
- 6 ip_login.module \ip_login_menu()
- 7.3 ip_login.module \ip_login_menu()
- 7.2 ip_login.module \ip_login_menu()
Implementation of hook_menu().
File
- ./
ip_login.module, line 107 - Allow user login by IP addresses, ranges or wildcards.
Code
function ip_login_menu() {
$items[ATTEMPT_IP_LOGIN] = array(
'title' => 'Automatically log me in by IP',
'access callback' => 'ip_login_is_possible',
'page callback' => 'ip_login_attempt_login',
'type' => MENU_CALLBACK,
);
$items['admin/settings/ip_login'] = array(
'title' => 'IP Login',
'description' => 'Configure IP Login settings',
'access callback' => 'user_access',
'access arguments' => array(
'administer ip login',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'ip_login_admin_settings',
),
'file' => 'ip_login.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/user/ip_login'] = array(
'title' => 'Users with IP Login',
'description' => 'Lists the users who can auto-login by IP address',
'access callback' => 'user_access',
'access arguments' => array(
'administer ip login',
),
'page callback' => 'ip_login_user_list',
'file' => 'ip_login.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}