Ensure travel form complies with admin options about dietary requirements and room mates

This commit is contained in:
2014-02-25 16:34:13 +11:00
parent c0067fd5f1
commit 1c2a18d1dc
2 changed files with 46 additions and 24 deletions

View File

@@ -846,9 +846,13 @@ function _booking_travelform_email_summary($node) {
$rows[] = t('Accommodation before Study Week Required: !value', array('!value' => $node->booking_accom_before_reqd == 1 ? 'Yes' : 'No'));
$rows[] = t('Accommodation after Study Week Required: !value', array('!value' => $node->booking_accom_after_reqd == 1 ? 'Yes' : 'No'));
//fields from booking_person
$rows[] = t('Special Dietary Requirements: ' . $node->booking_dietary);
$rows[] = t('Special Medical Conditions: ' . $node->booking_medical_conditions);
if (variable_get('booking_enable_dietary', 0) == 1)
$rows[] = t('Special Dietary Requirements: ' . $node->booking_dietary);
if (variable_get('booking_enable_roommate', 0) == 1)
$rows[] = t('Special Medical Conditions: ' . $node->booking_medical_conditions);
$rows[] = t('Boyfriend/Girlfriend: ' . $bf_gf);
$rows[] = t('Requested room mate(s): ' . $node->booking_room_mate1);
foreach ($rows as $key => $value)
$rows[$key] = wordwrap($value);