function ip_menu in IP address manager 6
Same name and namespace in other branches
- 7 ip.module \ip_menu()
Implementation of hook_menu().
File
- ./
ip.module, line 20 - IP address manager module.
Code
function ip_menu() {
$items = array();
$items['user/%user/ip'] = array(
'title' => 'Manage IP addresses',
'page callback' => 'ip_user_manage',
'page arguments' => array(
1,
),
'access arguments' => array(
'manage ip addresses',
),
'type' => MENU_LOCAL_TASK,
'description' => t("Manage a user's IP addresses."),
);
$items['user/ip/%'] = array(
'title' => 'Manage IP addresses',
'page callback' => 'ip_manage',
'page arguments' => array(
2,
),
'access arguments' => array(
'manage ip addresses',
),
'type' => MENU_LOCAL_TASK,
'description' => t("Manage a user's IP addresses."),
);
return $items;
}