cleanup debugs
This commit is contained in:
@@ -33,7 +33,7 @@ function booking_confirm_page() {
|
||||
if ($person) {
|
||||
//load all the fields
|
||||
$node = node_load($person->nid);
|
||||
watchdog('booking_debug', 'booking_confirm_page node: <pre>@info</pre>', array('@info' => print_r( $node, true)));
|
||||
//watchdog('booking_debug', 'booking_confirm_page node: <pre>@info</pre>', array('@info' => print_r( $node, true)));
|
||||
|
||||
//maximum length for invoice id is 127 characters
|
||||
$invoiceid = $person->nid . '_' . $node->booking_eventid . '_' . $node->booking_lastname . '-' . $node->booking_firstname;
|
||||
|
@@ -152,14 +152,14 @@ function booking_load_query($node_ids = NULL, $fetchAssoc = FALSE)
|
||||
if (! is_null($node_ids)) {
|
||||
$nid_string = implode(',', array_map('_booking_quote_string', $node_ids));
|
||||
$query_string = "SELECT * FROM {booking_person_view} WHERE nid IN ( " . $nid_string . " )";
|
||||
watchdog('booking_debug', "<pre>Loading node query:\n@info</pre>", array('@info' => print_r($query_string, true)));
|
||||
//watchdog('booking_debug', "<pre>Loading node query:\n@info</pre>", array('@info' => print_r($query_string, true)));
|
||||
$result = db_query($query_string)->fetchAllAssoc('nid');
|
||||
}
|
||||
else {
|
||||
$result = db_query("SELECT * FROM {booking_person_view}")->fetchAllAssoc('nid');
|
||||
}
|
||||
|
||||
watchdog('booking', "<pre>Loading node query output:\n@info</pre>", array('@info' => print_r( $result, true)));
|
||||
//watchdog('booking', "<pre>Loading node query output:\n@info</pre>", array('@info' => print_r( $result, true)));
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -823,7 +823,7 @@ function booking_view($node, $view_mode) {
|
||||
$rows = array();
|
||||
$travel_rows = array();
|
||||
|
||||
watchdog('booking_debug', 'booking view node: <pre>@info</pre>', array('@info' => print_r( $node, true)));
|
||||
//watchdog('booking_debug', 'booking view node: <pre>@info</pre>', array('@info' => print_r( $node, true)));
|
||||
|
||||
//calculate the price owed by this person
|
||||
//if (_booking_is_earlybird() == true || _booking_amount_owing($node->nid) == 0)
|
||||
|
Reference in New Issue
Block a user