no more debug

This commit is contained in:
Nathan Coad
2019-09-17 16:30:12 +10:00
parent e8673e423e
commit 4d5fa31fc8
2 changed files with 6 additions and 6 deletions

View File

@@ -1098,7 +1098,7 @@ function booking_form_validate($form, &$form_state) {
global $event;
$node = $form_state['values']['form_id'];
$data = $form_state['input'];
watchdog('booking', '<pre>Booking registration form validation:\n@info</pre>', array('@info' => print_r( $data, true)));
//watchdog('booking_debug', '<pre>Booking registration form validation:\n@info</pre>', array('@info' => print_r( $data, true)));
//if necessary, validate early access code
if (variable_get('booking_enable_earlyaccess_codes', 0) == 1 && (isset($data['booking_earlyaccess']) && $data['booking_earlyaccess'] == 1)) {
@@ -1452,11 +1452,11 @@ function booking_form_submit($form, &$form_state)
$node->booking_amount_paid = 0;
$node->booking_total_pay_reqd = $payment_total_price->booking_price;
watchdog('booking', 'Node data: @info', array('@info' => var_export($node, TRUE)));
//watchdog('booking_debug', 'Node data: @info', array('@info' => var_export($node, TRUE)));
$foo = node_submit($node);
watchdog('booking', 'Node data after submit: @info', array('@info' => var_export($foo, TRUE)));
//watchdog('booking_debug', 'Node data after submit: @info', array('@info' => var_export($foo, TRUE)));
$blah = node_save($foo);
watchdog('booking', 'Node data after save: @info', array('@info' => var_export($blah, TRUE)));
//watchdog('booking_debug', 'Node data after save: @info', array('@info' => var_export($blah, TRUE)));
//post submission triggers
_booking_form_submit_post_triggers($node);

View File

@@ -467,8 +467,8 @@ function booking_update($node) {
$data['booking_firstname'] = _booking_ucname($data['booking_firstname']);
$data['booking_lastname'] = _booking_ucname($data['booking_lastname']);
watchdog('booking', '<pre>Old node:\n@info</pre>', array('@info' => var_export($node, TRUE)));
watchdog('booking', 'Updating node: @info', array('@info' => var_export($data, TRUE)));
//watchdog('booking_debug', "<pre>Old node:\n@info</pre>", array('@info' => var_export($node, TRUE)));
watchdog('booking_debug', 'Updating node: @info', array('@info' => var_export($data, TRUE)));
db_update('booking_person')->fields($data)->condition('nid', $node->nid)->execute();
/*
//watchdog('booking', 'Updating node: @info', array('@info' => var_export($node, TRUE)));