change song choice to freestyle text

This commit is contained in:
2017-08-29 22:48:26 +10:00
parent d568cf2043
commit 79b2b0e505
3 changed files with 29 additions and 0 deletions

View File

@@ -941,6 +941,15 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
'#default_value' => !empty($data->booking_song_choice) ? $data->booking_song_choice : ''
);
}
if (variable_get('booking_enable_freestyle', 0) == 1) {
$form['misc-areas']['booking_freestyle_text'] = array(
'#type' => 'textfield',
'#title' => t("Freestyle (optional)"),
'#maxlength' => 500,
'#required' => FALSE,
'#default_value' => !empty($data->booking_freestyle_text) ? $data->booking_freestyle_text : ''
);
}
if ($inserting == TRUE) {
$form['submit'] = array(