function ip_menu in IP address manager 7
Same name and namespace in other branches
- 6 ip.module \ip_menu()
Implements hook_menu().
File
- ./
ip.module, line 29 - 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 callback' => 'ip_menu_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'description' => "Manage a user's IP addresses.",
);
/*
// This page hasn't been made yet, but it should be a list of IP addresses.
$items['admin/people/ip'] = array(
'title' => 'Manage IP addresses',
'page callback' => 'ip_manage',
'access arguments' => array('manage ip addresses'),
'type' => MENU_LOCAL_TASK,
'description' => "Manage all IP addresses.",
);
*/
$items['admin/people/ip/%'] = array(
'title' => 'Manage IP addresses',
'page callback' => 'ip_manage',
'page arguments' => array(
3,
),
'access callback' => 'ip_menu_access',
'access arguments' => array(
3,
),
'type' => MENU_CALLBACK,
'description' => "Manage IP addresses.",
);
return $items;
}