Added random fact fields

This commit is contained in:
2015-07-30 20:47:51 +10:00
parent 11b27bb4b1
commit 9b9a8702f5
4 changed files with 24 additions and 2 deletions

View File

@@ -75,12 +75,12 @@ function booking_form($node, &$form_state, $inserting = FALSE) {
//watchdog('booking', 'Booking registration form loading data from form submission: @info', array('@info' => var_export($form_state, TRUE)));
}
/*
$emergency_contact_type_options = array(
'parent' => 'Parent',
'legal_guardian' => 'Legal Guardian',
'relative' => 'Close Relative');
/*
$status_options[0] = t('Not Paid');
$status_options[1] = t('Booked In');
$status_options[2] = t('Waiting List');
@@ -990,12 +990,20 @@ if (variable_get('booking_enable_passport', 0) == 1)
{
$form['misc-areas']['booking_room_mate1'] = array(
'#type' => 'textfield',
'#title' => t('I would like to share a room with'),
'#title' => t('List up to two people you would like to share a room with (subject to availability).'),
'#maxlength' => 200,
'#required' => FALSE,
'#default_value' => !empty($data->booking_room_mate1) ? $data->booking_room_mate1 : '',
);
}
$form['misc-areas']['booking_random_facts'] = array(
'#type' => 'textfield',
'#title' => t('List three random facts about yourself (optional).'),
'#maxlength' => 200,
'#required' => FALSE,
'#default_value' => !empty($data->booking_random_facts) ? $data->booking_random_facts : '',
);
if ($inserting == TRUE) {