function clients_menu in Web Service Clients 6.2
Same name and namespace in other branches
- 6 clients.module \clients_menu()
- 7.3 clients.module \clients_menu()
- 7 clients.module \clients_menu()
- 7.2 clients.module \clients_menu()
Implementation of hook_menu().
File
- ./
clients.module, line 93 - 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/build/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/build/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/build/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/build/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/build/clients/connections/%clients_connection/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/build/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/build/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/build/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,
),
'access arguments' => array(
'administer clients connections',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/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/build/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;
}