You are here

services_client_connection.api.php in Services Client 7

Same filename and directory in other branches
  1. 7.2 services_client_connection/services_client_connection.api.php

Services Client Connection exposed hooks

File

services_client_connection/services_client_connection.api.php
View source
<?php

/**
 * @file
 * Services Client Connection exposed hooks
 */

/**
 * Allows to alter or react on HTTP call to remote site
 *
 * @param ServicesClientConnectionHttpRequest $request
 *   Processed request
 * @return
 *   Hook shoud modify passed objecgt
 */
function hook_services_client_connection_request_alter(ServicesClientConnectionHttpRequest &$request) {
}

/**
 * Allow to alter response from remote site
 *
 * @param ServicesClientConnectionResponse $response
 *   Response created by request plugin
 * @param ServicesClientConnectionHttpRequest $request
 *   Original request
 */
function hook_services_client_connection_response_alter(ServicesClientConnectionResponse &$response, ServicesClientConnectionHttpRequest $request) {
}

/**
 * Provide default connections defined in code
 *
 * @return
 *   Array of connection definitions
 */
function hook_services_client_connection_default_connections() {
}

/**
 * Connection is saved, module should save data to own table
 *
 * @param $connection
 *   Connection object
 */
function hook_services_client_connection_save(&$connection) {
}

/**
 * Add custom module properties to connection object
 *
 * @param $connection
 *   Connection object loaded form DB
 */
function hook_services_client_connection_load(&$connection) {
}

Functions

Namesort descending Description
hook_services_client_connection_default_connections Provide default connections defined in code
hook_services_client_connection_load Add custom module properties to connection object
hook_services_client_connection_request_alter Allows to alter or react on HTTP call to remote site
hook_services_client_connection_response_alter Allow to alter response from remote site
hook_services_client_connection_save Connection is saved, module should save data to own table