Ensure travel form complies with admin options about dietary requirements and room mates
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user