Tidy up formatting

This commit is contained in:
2016-05-25 11:25:04 +10:00
parent e02d863833
commit 691e1feeef

View File

@@ -17,6 +17,7 @@ function booking_travel_page()
return ""; return "";
} }
//verify that this feature is enabled
if (variable_get('booking_enable_travelform', 0) == 0) { 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_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'); drupal_goto('content/travel');
@@ -26,9 +27,8 @@ function booking_travel_page()
//work out the node id from the session id //work out the node id from the session id
$query = db_select('booking_person', 'p'); $query = db_select('booking_person', 'p');
$query->condition('p.booking_tempid', arg(1), '=')->fields('p', array( $query->condition('p.booking_tempid', arg(1), '=')
'nid' ->fields('p', array('nid'));
));
$person = $query->execute()->fetchObject(); $person = $query->execute()->fetchObject();
//if we found a matching person //if we found a matching person
@@ -696,4 +696,4 @@ function travel_view($node, $view_mode)
'#weight' => 1 '#weight' => 1
); );
return $node; return $node;
} }