function services_menu in Services 7
Same name and namespace in other branches
- 5 services.module \services_menu()
- 6.3 services.module \services_menu()
- 6 services.module \services_menu()
- 6.2 services.module \services_menu()
- 7.3 services.module \services_menu()
Implements hook_menu().
File
- ./
services.module, line 39 - @author Services Dev Team
Code
function services_menu() {
$items['admin/build/services'] = array(
'title' => 'Services',
'description' => 'Allows external applications to communicate with Drupal.',
'access arguments' => array(
'administer services',
),
'page callback' => 'services_admin_browse_index',
'file' => 'services_admin_browse.inc',
);
$items['admin/build/services/browse'] = array(
'title' => 'Browse',
'description' => 'Browse and test available remote services.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/build/services/browse/%services_method'] = array(
'title' => 'Services',
'description' => 'Calls a Services method.',
'page callback' => 'services_admin_browse_method',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer services',
),
'type' => MENU_LOCAL_TASK,
'file' => 'services_admin_browse.inc',
);
$items['admin/build/services/settings'] = array(
'title' => 'Settings',
'description' => 'Configure service settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'services_admin_settings',
),
'access arguments' => array(
'administer services',
),
'type' => MENU_LOCAL_TASK,
'file' => 'services_admin_browse.inc',
);
$items['admin/build/services/settings/general'] = array(
'title' => 'General',
'description' => 'Configure service settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'services_admin_settings',
),
'access arguments' => array(
'administer services',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
'file' => 'services_admin_browse.inc',
);
$items['admin/services/ahah/security-options'] = array(
'file' => 'services_admin_browse.inc',
'page callback' => '_services_ahah_security_options',
'access arguments' => array(
'administer services',
),
'type' => MENU_CALLBACK,
);
$items['crossdomain.xml'] = array(
'access callback' => 'services_access_menu',
'page callback' => 'services_crossdomain_xml',
'type' => MENU_CALLBACK,
);
$items['services/%'] = array(
'title' => 'Services',
'access callback' => 'services_access_menu',
'page callback' => 'services_server',
'page arguments' => array(
1,
),
'type' => MENU_CALLBACK,
);
return $items;
}