You are here

function hook_wsclient_service_update in Web service client 7

Respond to updates to a web service description.

This hook is invoked after the web service description has been updated in the database.

Parameters

WSClientServiceDescription $service: The web service description that is being updated.

File

./wsclient.api.php, line 108
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_service_update($service) {
  db_update('mytable')
    ->fields(array(
    'my_field' => $service->myField,
  ))
    ->condition('id', $service->id)
    ->execute();
}