debug travel form
This commit is contained in:
@@ -111,12 +111,12 @@ function travel_form($node, &$form_state, $inserting = FALSE, $tokens = NULL)
|
|||||||
//there's already info in $node so use that
|
//there's already info in $node so use that
|
||||||
if (!empty($node)) {
|
if (!empty($node)) {
|
||||||
$data = $node;
|
$data = $node;
|
||||||
//watchdog('booking_debug', "<pre>Travel form not-empty node:\n@info</pre>", array('@info' => print_r( $form_state, true)));
|
watchdog('booking_debug', "<pre>Travel form not-empty node:\n@info</pre>", array('@info' => print_r( $node, true)));
|
||||||
}
|
}
|
||||||
//otherwise rely on the form state from the previous submission
|
//otherwise rely on the form state from the previous submission
|
||||||
else {
|
else {
|
||||||
$data = $form_state['input'];
|
$data = $form_state['node'];
|
||||||
//watchdog('booking_debug', "<pre>Travel form empty node:\n@info</pre>", array('@info' => print_r( $data, true)));
|
watchdog('booking_debug', "<pre>Travel form empty node:\n@info</pre>", array('@info' => print_r( $form_state, true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//get info about this person from the relevant node id
|
//get info about this person from the relevant node id
|
||||||
|
Reference in New Issue
Block a user