function hook_wsclient_service_insert in Web service client 7
Respond to creation of a new web service description.
This hook is invoked after the description is inserted into the database.
Parameters
$service: The web service description that is being created.
File
- ./
wsclient.api.php, line 77 - 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_insert($service) {
db_insert('mytable')
->fields(array(
'id' => $service->id,
'my_field' => $service->myField,
))
->execute();
}