Configuration option for enabling dietary requirement specification

This commit is contained in:
2014-02-08 16:57:33 +11:00
parent ac78ecd3f1
commit 8856c037e0
3 changed files with 50 additions and 47 deletions

View File

@@ -181,8 +181,19 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_roommate', 0),
);
$form['misc']['booking_enable_dietary'] = array (
'#type' => 'radios',
'#title' => t('Allow attendee to specify dietary requirements?'),
'#description' => t('If set to No, the following text definition will be used instead.'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_dietary', 0),
);
$form['misc']['booking_dietary_text_definition'] = array (
'#type' => 'textfield',
'#title' => t('Dietary Requirements Text Definition'),
'#default_value' => variable_get('booking_dietary_text_definition', ''),
'#description' => 'Text to use if attendee cannot specify dietary requirements',
);
return system_settings_form($form);
}