function clients_menu in Web Service Clients 6
Same name and namespace in other branches
- 6.2 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 46 - Clients module - handles keys and service connections and provides an API for clients @author Django Beatty - adub
Code
function clients_menu() {
$items = array();
$items['admin/settings/clients'] = array(
'title' => 'Clients',
'description' => 'Clients',
'page callback' => 'clients_resources',
'access callback' => 'clients_access_callback',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/clients/connections'] = array(
'title' => 'Connections',
'weight' => 1,
'description' => 'List connections',
'page callback' => 'clients_connections',
'access arguments' => array(
'admin clients connections',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/clients/resources'] = array(
'title' => 'Resources',
'weight' => 2,
'description' => 'List resources',
'page callback' => 'clients_resources',
'access arguments' => array(
'admin clients resources',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/clients/resources/add'] = array(
'title' => 'Add resource',
'weight' => 1,
'description' => 'Add resource',
'page callback' => 'clients_resources_add',
'access arguments' => array(
'admin clients resources',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/clients/resources/%'] = array(
'title' => 'Show resource',
'description' => 'Show resource',
'page callback' => 'clients_resource_view',
'page arguments' => array(
4,
),
'access arguments' => array(
'admin clients resources',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/clients/resources/%/edit'] = array(
'title' => 'Edit resource',
'weight' => 1,
'description' => 'Edit data source',
'page callback' => 'clients_resources_edit',
'page arguments' => array(
4,
),
'access arguments' => array(
'admin clients resources',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/clients/resources/%/delete'] = array(
'title' => 'Delete resource',
'description' => 'Delete a resource',
'page callback' => 'clients_delete',
'page arguments' => array(
4,
3,
),
'access arguments' => array(
'admin clients connections',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/clients/cache'] = array(
'title' => 'Advanced',
'weight' => 3,
'description' => 'Clients cache settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clients_admin_cache',
),
'access arguments' => array(
'admin clients resources',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/clients/connection/%'] = array(
'title' => 'Show connection',
'description' => 'Show connection',
'page callback' => 'clients_connection_view',
'page arguments' => array(
4,
),
'access arguments' => array(
'admin clients connections',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/clients/connections/%/delete'] = array(
'title' => 'Delete connection',
'description' => 'Delete a connection',
'page callback' => 'clients_delete',
'page arguments' => array(
4,
3,
),
'access arguments' => array(
'admin clients connections',
),
'type' => MENU_CALLBACK,
);
return $items;
}