reduce debugging messages
This commit is contained in:
@@ -283,7 +283,7 @@ function booking_load($nodes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function booking_insert($node) {
|
function booking_insert($node) {
|
||||||
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($node, TRUE)));
|
|
||||||
//TODO: Generalise this by using the keys from $node instead of hard coding everything
|
//TODO: Generalise this by using the keys from $node instead of hard coding everything
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
@@ -294,7 +294,8 @@ function booking_insert($node) {
|
|||||||
$data[$key] = $value;
|
$data[$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
||||||
|
//watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
||||||
db_insert('booking_person')->fields($data)->execute();
|
db_insert('booking_person')->fields($data)->execute();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user