You are here

function services_client_services_client_connection_save in Services Client 7.2

Same name and namespace in other branches
  1. 7 services_client.module \services_client_services_client_connection_save()

Implements hook_services_client_connection_save().

File

./services_client.module, line 330

Code

function services_client_services_client_connection_save($connection) {
  if (!empty($connection->services_client_id)) {
    db_merge('services_client_connection_id')
      ->key(array(
      'name' => $connection->name,
    ))
      ->fields(array(
      'services_client_id' => $connection->services_client_id,
    ))
      ->execute();
  }
}