Tidy up formatting
This commit is contained in:
@@ -17,6 +17,7 @@ function booking_travel_page()
|
||||
return "";
|
||||
}
|
||||
|
||||
//verify that this feature is enabled
|
||||
if (variable_get('booking_enable_travelform', 0) == 0) {
|
||||
drupal_set_message("Error: The travel form is not enabled. Please use the contact us form to inform the site owner of this error.", 'error', FALSE);
|
||||
drupal_goto('content/travel');
|
||||
@@ -26,9 +27,8 @@ function booking_travel_page()
|
||||
|
||||
//work out the node id from the session id
|
||||
$query = db_select('booking_person', 'p');
|
||||
$query->condition('p.booking_tempid', arg(1), '=')->fields('p', array(
|
||||
'nid'
|
||||
));
|
||||
$query->condition('p.booking_tempid', arg(1), '=')
|
||||
->fields('p', array('nid'));
|
||||
$person = $query->execute()->fetchObject();
|
||||
|
||||
//if we found a matching person
|
||||
@@ -696,4 +696,4 @@ function travel_view($node, $view_mode)
|
||||
'#weight' => 1
|
||||
);
|
||||
return $node;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user