remove some unnecessary logging
This commit is contained in:
@@ -437,7 +437,7 @@ function _booking_travelform_initial_request_email($nid)
|
||||
//return without doing anything if we shouldn't send workflow emails
|
||||
if (variable_get('booking_auto_workflow_email', 0) == 0)
|
||||
{
|
||||
watchdog('booking', 'Not sending travelform confirmation email since that feature is currently disabled.');
|
||||
watchdog('booking', 'Not sending travelform initial request email since that feature is currently disabled.');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -445,8 +445,6 @@ function _booking_travelform_initial_request_email($nid)
|
||||
$node = node_load($nid, NULL, TRUE);
|
||||
$tokens = booking_define_personspecific_tokens($node);
|
||||
|
||||
watchdog('booking', 'Sending travelform confirmation email to !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
|
||||
|
||||
//calculate the from email address
|
||||
$from = t('!event Travel <!email>', array('!event' => $event->booking_eventname,
|
||||
'!email' => variable_get('booking_logistics_email', variable_get('site_mail', ini_get('sendmail_from')))
|
||||
@@ -486,7 +484,7 @@ function _booking_travelform_reminder_request_email($nid)
|
||||
//return without doing anything if we shouldn't send workflow emails
|
||||
if (variable_get('booking_auto_workflow_email', 0) == 0)
|
||||
{
|
||||
watchdog('booking', 'Not sending travelform confirmation email since that feature is currently disabled.');
|
||||
watchdog('booking', 'Not sending travelform reminder request email since that feature is currently disabled.');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -494,8 +492,6 @@ function _booking_travelform_reminder_request_email($nid)
|
||||
$node = node_load($nid, NULL, TRUE);
|
||||
$tokens = booking_define_personspecific_tokens($node);
|
||||
|
||||
watchdog('booking', 'Sending travelform confirmation email to !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
|
||||
|
||||
//calculate the from email address
|
||||
$from = t('!event Travel <!email>', array('!event' => $event->booking_eventname,
|
||||
'!email' => variable_get('booking_logistics_email', variable_get('site_mail', ini_get('sendmail_from')))
|
||||
|
@@ -110,12 +110,12 @@ function travel_form($node, &$form_state, $inserting = FALSE, $node = NULL, $tok
|
||||
//there's already info in $node so use that
|
||||
if (!empty($node)) {
|
||||
$data = $node;
|
||||
watchdog('booking_debug', "<pre>Travel form not-empty node:\n@info</pre>", array('@info' => print_r( $form_state, true)));
|
||||
//watchdog('booking_debug', "<pre>Travel form not-empty node:\n@info</pre>", array('@info' => print_r( $form_state, true)));
|
||||
}
|
||||
//otherwise rely on the form state from the previous submission
|
||||
else {
|
||||
$data = $form_state['node'];
|
||||
watchdog('booking_debug', "<pre>Travel form empty node:\n@info</pre>", array('@info' => print_r( $data, true)));
|
||||
//watchdog('booking_debug', "<pre>Travel form empty node:\n@info</pre>", array('@info' => print_r( $data, true)));
|
||||
}
|
||||
|
||||
//get info about this person from the relevant node id
|
||||
@@ -124,7 +124,7 @@ function travel_form($node, &$form_state, $inserting = FALSE, $node = NULL, $tok
|
||||
array(':nid' => isset($node->nid) ? $node->nid : $data->booking_person_nid))->fetchObject();
|
||||
|
||||
if ($person) {
|
||||
watchdog('booking_debug', "<pre>Person info from database:\n@info</pre>", array('@info' => print_r( $person, true)));
|
||||
//watchdog('booking_debug', "<pre>Person info from database:\n@info</pre>", array('@info' => print_r( $person, true)));
|
||||
$booking_dietary = $person->booking_dietary;
|
||||
$booking_medical_conditions = $person->booking_medical_conditions;
|
||||
//an empty value is zero in this case
|
||||
@@ -405,7 +405,6 @@ function travel_form_validate($form, &$form_state) {
|
||||
));
|
||||
}
|
||||
|
||||
//if ($form_state['values']['booking_flight_datetime_inbound']['day'] == '' || $form_state['values']['booking_flight_datetime_inbound']['month'] == '' || $form_state['values']['booking_flight_datetime_inbound']['year'] == '' || $form_state['values']['booking_flight_datetime_inbound']['hour'] == //'' || $form_state['values']['booking_flight_datetime_inbound']['minute'] == '') {
|
||||
if (!isset($form_state['values']['booking_flight_datetime_inbound'])) {
|
||||
form_set_error('booking_flight_datetime_inbound', t('Please enter the arrival time associated with your flight.'));
|
||||
watchdog('booking_debug', "<pre>Travel form missing flight arrival time\n@info</pre>", array(
|
||||
|
Reference in New Issue
Block a user