You are here

function clients_drupal_clients_call in Web Service Clients 7

Same name and namespace in other branches
  1. 6 backends/clients_drupal/clients_drupal.module \clients_drupal_clients_call()

Implementation of hook_clients_call

TODO: rename to hook_clients_call_resource

File

backends/clients_drupal/clients_drupal.module, line 198
Drupal Services plugin for Clients module

Code

function clients_drupal_clients_call($connection, $serviceOptions) {
  if ($connection->type == 'drupal_services') {
    $serviceConfig = clients_connection_load((int) $connection->cid);
    return ClientsServicesDrupal::call($serviceConfig, $serviceOptions);
  }
}