You are here

function hook_default_wsclient_service in Web service client 7

Define default web service descriptions.

This hook is invoked when web service descriptions are loaded.

Return value

An array of web service descriptions with the web service names as keys.

See also

hook_default_wsclient_service_alter()

1 function implements hook_default_wsclient_service()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

wsclient_examples_default_wsclient_service in wsclient_examples/wsclient_examples.module
Implements hook_default_wsclient_service().

File

./wsclient.api.php, line 140
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document web service descriptions in the standard Drupal manner.

Code

function hook_default_wsclient_service() {
  $service = new WSClientServiceDescription();
  $service->name = 'master';
  $service->label = 'The master site.';
  $service->url = 'http://master.example.com';
  $service->type = 'rest';
  $services[$service->name] = $service;
  return $services;
}