You are here

function services_client_make_call in Services Client 7

Make call to remote site by event $type

Parameters

$src_data: Data being pushed via services_client

$type: Event type, i.e. 'node_save', 'node_delete', 'user_save',

$task: Task definition

2 calls to services_client_make_call()
services_client_data_process in ./services_client.module
This function takes inbound data objects and a type and determines if there are tasks for them. If there are, it checks conditions and then generates connections and organizes the data to pass to the calling functions
services_client_error_retry in services_client_error/services_client_error.module
Retry and execute error

File

./services_client.module, line 589
Services client module allows to push different types of objects on different types of events such as node_save, user_save to remote masters.

Code

function services_client_make_call($src_data, $type, $task) {
  switch ($type) {
    case 'node_save':
      services_client_make_node_call($src_data, $task);
      break;
    case 'node_delete':
      services_client_make_node_delete_call($src_data, $task);
      break;
    case 'user_save':
      services_client_make_user_call($src_data, $task);
      break;
    case 'webform_submission_save':
      $conds = unserialize($hook->hook_conditions);
      if ($src_data->nid == $conds['webform_nid']) {
        services_client_make_submission_to_node_call($src_data, $task);
      }
      break;
  }
}