make song choice configurable option

This commit is contained in:
2017-08-18 10:28:51 +10:00
parent e324071ad9
commit 8bb01c00ee
2 changed files with 19 additions and 7 deletions

View File

@@ -911,13 +911,15 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
'#default_value' => !empty($data->booking_random_facts) ? $data->booking_random_facts : ''
);
$form['misc-areas']['booking_song_choice'] = array(
'#type' => 'textfield',
'#title' => t("Let us know if there's a song you'd love to sing during the week."),
'#maxlength' => 200,
'#required' => FALSE,
'#default_value' => !empty($data->booking_song_choice) ? $data->booking_song_choice : ''
);
if (variable_get('booking_enable_songchoice', 0) == 1) {
$form['misc-areas']['booking_song_choice'] = array(
'#type' => 'textfield',
'#title' => t("Let us know if there's a song you'd love to sing during the week."),
'#maxlength' => 200,
'#required' => FALSE,
'#default_value' => !empty($data->booking_song_choice) ? $data->booking_song_choice : ''
);
}
if ($inserting == TRUE) {
$form['submit'] = array(