You are here

function hook_wsclient_endpoint_types in Web service client 7

Define a remote endpoint type.

This hook may be used to define a remote endpoint type, which users may use for configuring web services.

Return value

An array of endpoint type definitions with the endpoint type names as keys. Each definition is represented by another array with the following keys:

  • label: The label of the endpoint type. Start capitalized. Required.
  • class: The actual implementation class for the endpoint type. This class has to implement the WSClientEndpointInterface. Required.

See also

hook_wsclient_endpoint_types_alter()

WSClientEndpointInterface

2 functions implement hook_wsclient_endpoint_types()

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

wsclient_rest_wsclient_endpoint_types in wsclient_rest/wsclient_rest.module
Implements hook_wsclient_endpoint_types().
wsclient_soap_wsclient_endpoint_types in wsclient_soap/wsclient_soap.module
Implements hook_wsclient_endpoint_types().
1 invocation of hook_wsclient_endpoint_types()
wsclient_get_types in ./wsclient.module
Gets all defined remote endpoint types.

File

./wsclient.api.php, line 31
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_wsclient_endpoint_types() {
  return array(
    'rules_web_hook' => array(
      'label' => t('Rules Web Hooks'),
      'class' => 'WSClientServiceDescriptionEndpointWebHooks',
    ),
  );
}