Configuration option for enabling dietary requirement specification
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user