update debug and formatting
This commit is contained in:
@@ -549,7 +549,7 @@ function travel_load($nodes)
|
||||
|
||||
function travel_insert($node)
|
||||
{
|
||||
watchdog('booking_debug', 'Inserting travel form: @info', array('@info' => print_r($node, TRUE)));
|
||||
watchdog('booking_debug', "<pre>Inserting travel form:\n@info</pre>", array('@info' => print_r($node, TRUE)));
|
||||
|
||||
db_insert('booking_travel')->fields(array(
|
||||
'tid' => $node->nid,
|
||||
@@ -637,6 +637,8 @@ function travel_delete($node)
|
||||
function travel_view($node, $view_mode)
|
||||
{
|
||||
global $event;
|
||||
$header = array('Attribute', 'Value');
|
||||
$rows = array();
|
||||
|
||||
//fetch details about the person
|
||||
$person = db_query("SELECT p.*, t.* from {booking_person} p " . "left outer join {booking_travel} t on p.nid = t.booking_person_nid " . "where p.nid = :nid", array(
|
||||
@@ -648,15 +650,10 @@ function travel_view($node, $view_mode)
|
||||
':nid' => $node->booking_bf_gf_nid
|
||||
))->fetchObject();
|
||||
$bf_gf = $query->booking_firstname . " " . $query->booking_lastname;
|
||||
} else
|
||||
}
|
||||
else {
|
||||
$bf_gf = "N/A";
|
||||
|
||||
|
||||
$header = array(
|
||||
'Attribute',
|
||||
'Value'
|
||||
);
|
||||
$rows = array();
|
||||
}
|
||||
|
||||
$rows[] = array(
|
||||
t('Name:'),
|
||||
|
Reference in New Issue
Block a user