@@ -151,6 +151,8 @@ function os2web_cp_service_alter_configuration($key, $value) {
151
151
* TRUE on successful content creation.
152
152
*/
153
153
function os2web_cp_service_create_case(array $data) {
154
+
155
+ watchdog('os2web_cp_service', 'CP case start: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
154
156
// Prepare data.
155
157
$data = array_replace_recursive(os2web_cp_service_default_case(), $data);
156
158
@@ -170,6 +172,7 @@ function os2web_cp_service_create_case(array $data) {
170
172
else {
171
173
$node = node_load(array_pop($nids));
172
174
}
175
+ watchdog('os2web_cp_service', 'CP old deleted: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
173
176
174
177
// See if the triggered rules on the published node, is approved
175
178
// in the vocabulary. Otherwise the node will be unpublished.
@@ -276,6 +279,7 @@ function os2web_cp_service_create_case(array $data) {
276
279
try {
277
280
node_submit($node);
278
281
node_save($node);
282
+ watchdog('os2web_cp_service', 'CP case done: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
279
283
return TRUE;
280
284
}
281
285
catch (Exception $e) {
@@ -397,6 +401,8 @@ function os2web_cp_service_default_case() {
397
401
* TRUE on successful content creation.
398
402
*/
399
403
function os2web_cp_service_create_document(array $data) {
404
+
405
+ watchdog('os2web_cp_service', 'CP document start: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
400
406
$data = array_replace_recursive(os2web_cp_service_default_document(), $data);
401
407
// Prepare data.
402
408
$query = new EntityFieldQuery();
@@ -415,6 +421,7 @@ function os2web_cp_service_create_document(array $data) {
415
421
else {
416
422
$node = node_load(array_pop($nids));
417
423
}
424
+ watchdog('os2web_cp_service', 'CP old deleted: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
418
425
419
426
// See if the triggered rules on the published node, is approved
420
427
// in the vocabulary. Otherwise the node will be unpublished.
@@ -513,6 +520,7 @@ function os2web_cp_service_create_document(array $data) {
513
520
}
514
521
}
515
522
}
523
+ watchdog('os2web_cp_service', 'CP document done: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
516
524
return TRUE;
517
525
}
518
526
0 commit comments