This commit is contained in:
2014-12-01 22:55:36 +11:00
parent 7a0220aa86
commit 57a7704e62
3 changed files with 22 additions and 12 deletions

View File

@@ -108,10 +108,29 @@ function booking_admin() {
'#options' => array (0 => t('Off'), t('On')),
'#default_value' => variable_get('booking_paypal_sandbox', 0),
);
$form['misc'] = array (
'#type' => 'fieldset',
'#title' => 'Configuration Options',
);
$form['misc']['booking_default_country'] = array (
'#type' => 'select',
'#title' => t('Select Default Country'),
'#description' => t('Select default country for residential address.'),
'#options' => _booking_country_options(),
'#default_value' => variable_get('booking_default_country', 'Australia'),
);
$form['misc']['booking_local_timezone'] = array (
'#type' => 'select',
'#title' => t('Select Local Time Zone'),
'#description' => t('Select time zone to use when calculating dates and times. This should match drupal\'s timezone definition'),
'#options' => _booking_country_options(),
'#default_value' => variable_get('booking_default_country', 'Australia'),
);
$form['misc']['booking_default_gender'] = array (
'#type' => 'select',
'#title' => t('Select Default Gender'),
@@ -126,13 +145,6 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_allow_couples', 0),
);
$form['misc']['booking_default_country'] = array (
'#type' => 'select',
'#title' => t('Select Default Country'),
'#description' => t('Select default country for residential address.'),
'#options' => _booking_country_options(),
'#default_value' => variable_get('booking_default_country', 'Australia'),
);
$form['misc']['booking_auto_confirm_email'] = array (
'#type' => 'radios',