diff --git a/booking.regn_node.inc b/booking.regn_node.inc index ed1e69f..2c5f8e1 100644 --- a/booking.regn_node.inc +++ b/booking.regn_node.inc @@ -273,8 +273,7 @@ function booking_load($nodes) { } function booking_insert($node) { - watchdog('booking', 'Inserting node: @info', array('@info' => var_export($node, TRUE))); - + watchdog('booking_debug', "
Inserting node:\n@info
", array('@info' => print_r($node, TRUE))); //TODO: Generalise this by using the keys from $node instead of hard coding everything db_insert('booking_person') @@ -285,30 +284,7 @@ function booking_insert($node) { 'booking_lastname' => $node->booking_lastname, 'booking_dob' => $node->booking_dob, 'booking_barcode' => $node->booking_barcode, - 'booking_luckynum' => $node->booking_luckynum, -/* - 'booking_passport_num' => $node->booking_passport_num, - 'booking_passport_issue_location' => $node->booking_passport_issue_location, - 'booking_passport_issue_name' => $node->booking_passport_issue_name, - 'booking_passport_expiry_date' => $node->booking_passport_expiry_date, - 'booking_destination_country' => $node->booking_destination_country, - 'booking_travel_insurance' => $node->booking_travel_insurance, - 'booking_outflight_bookingnum' => $node->booking_outflight_bookingnum, - 'booking_outflight_flightnum' => $node->booking_outflight_flightnum, - 'booking_outflight_bookingnum' => $node->booking_outflight_bookingnum, - 'booking_outflight_origin' => $node->booking_outflight_origin, - 'booking_outflight_origin_ts' => $node->booking_outflight_origin_ts, - 'booking_outflight_connecting_flightnum' => $node->booking_outflight_connecting_flightnum, - 'booking_outflight_destination' => $node->booking_outflight_destination, - 'booking_outflight_destination_ts' => $node->booking_outflight_destination_ts, - 'booking_rtrnflight_bookingnum' => $node->booking_rtrnflight_bookingnum, - 'booking_rtrnflight_flightnum' => $node->booking_rtrnflight_flightnum, - 'booking_rtrnflight_origin' => $node->booking_rtrnflight_origin, - 'booking_rtrnflight_origin_ts' => $node->booking_rtrnflight_origin_ts, - 'booking_rtrnflight_connecting_flightnum' => $node->booking_rtrnflight_connecting_flightnum, - 'booking_rtrnflight_destination' => $node->booking_rtrnflight_destination, - 'booking_rtrnflight_destination_ts' => $node->booking_rtrnflight_destination_ts, -*/ + 'booking_luckynum' => $node->booking_luckynum, 'booking_gender' => $node->booking_gender, 'booking_street' => $node->booking_street, 'booking_suburb' => $node->booking_suburb,