function hosting_client_menu in Hosting 6.2
Same name and namespace in other branches
- 5 client/hosting_client.module \hosting_client_menu()
- 7.4 client/hosting_client.module \hosting_client_menu()
- 7.3 client/hosting_client.module \hosting_client_menu()
Implementation of hook_menu().
File
- client/
hosting_client.module, line 571
Code
function hosting_client_menu() {
$items['node/%node/site/add'] = array(
'title' => 'Add site',
'description' => 'Add a site to the current client',
'page callback' => 'hosting_client_site_form',
'page arguments' => array(
'site_node_form',
1,
),
'access callback' => 'hosting_client_menu_access',
'access arguments' => array(
'create site',
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
$items['hosting_client/autocomplete'] = array(
'title' => 'hosting client get client autocomplete',
'page callback' => 'hosting_client_autocomplete',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['admin/hosting/client'] = array(
'title' => 'Clients',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hosting_client_configure',
),
'access callback' => '_hosting_client_configure_access',
'type' => MENU_LOCAL_TASK,
);
$items['hosting/clients/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['hosting/clients/add'] = array(
'title' => 'Add client',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_goto',
'page arguments' => array(
'node/add/client',
),
'access callback' => 'node_access',
'access arguments' => array(
'create',
'client',
),
);
$items['node/%node/clients'] = array(
'title' => 'Clients',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hosting_client_platform_access_form',
1,
),
'access callback' => '_hosting_client_platform_access',
'access arguments' => array(
1,
),
);
return $items;
}