function clients_menu in Web Service Clients 7.2
Same name and namespace in other branches
- 6.2 clients.module \clients_menu()
- 6 clients.module \clients_menu()
- 7.3 clients.module \clients_menu()
- 7 clients.module \clients_menu()
Implements hook_menu()
File
- ./
clients.module, line 96 - Clients module provides a UI, storage, and an API for handling connections to remote webservices, including those provided by Services module on other Drupal sites.
Code
function clients_menu() {
$items = array();
$items['admin/structure/clients'] = array(
'title' => 'Clients',
'description' => 'Administer connections to remote sites.',
'page callback' => 'clients_connections_list',
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/structure/clients/connections'] = array(
'title' => 'Connections',
'weight' => 1,
'description' => 'List connections',
'page callback' => 'clients_connections_list',
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/structure/clients/connections/add/%'] = array(
'title' => 'Add connection',
'page callback' => 'clients_connection_add',
'page arguments' => array(
5,
),
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
);
$items['admin/structure/clients/connections/%clients_connection'] = array(
'title' => 'Connection',
'description' => 'Show connection',
'page callback' => 'clients_connection_view',
'page arguments' => array(
4,
),
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
'weight' => 0,
// This prevents the tabs showing under the connection list admin where
// they have no meaning. Cribbed from taxonomy_menu().
'type' => MENU_CALLBACK,
);
$items['admin/structure/clients/connections/%clients_connection/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/structure/clients/connections/%clients_connection/edit'] = array(
'title' => 'Edit',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clients_connection_form',
4,
),
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/clients/connections/%clients_connection/test'] = array(
'title' => 'Test',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clients_connection_test_form',
4,
),
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/clients/connections/%clients_connection/delete'] = array(
'title' => 'Delete connection',
'description' => 'Delete a connection',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'client_delete_confirm',
'connection',
4,
),
'file' => 'clients.connection.admin.inc',
'access arguments' => array(
'administer clients connections',
),
'type' => MENU_CALLBACK,
);
$items['admin/structure/clients/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clients_admin_cache',
),
'access arguments' => array(
'administer clients connections',
),
'weight' => 10,
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/clients/settings/cache'] = array(
'title' => 'Cache',
'weight' => -1,
'description' => 'cccc connections',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clients_admin_cache',
),
'access arguments' => array(
'administer clients connections',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
return $items;
}