function hosting_server_menu in Hosting 7.4
Same name and namespace in other branches
- 6.2 server/hosting_server.module \hosting_server_menu()
- 7.3 server/hosting_server.module \hosting_server_menu()
Implements hook_menu().
File
- server/
hosting_server.module, line 106
Code
function hosting_server_menu() {
$items = array();
$items['hosting/servers/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['hosting/servers/add'] = array(
'title' => 'Add server',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_goto',
'page arguments' => array(
'node/add/server',
),
'access callback' => 'node_access',
'access arguments' => array(
'create',
'server',
),
);
return $items;
}