Further config option rearrangement

This commit is contained in:
2015-03-04 16:22:38 +11:00
parent 4e513ec721
commit 1a9778d387

View File

@@ -95,6 +95,13 @@ function booking_admin() {
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => 'Paypal Settings', '#title' => 'Paypal Settings',
); );
$form['paypal']['booking_use_paypal'] = array (
'#type' => 'radios',
'#title' => t('Use Paypal?'),
'#description' => t('Select whether to use paypal for automatic payment handling, or process payments manually.'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_use_paypal', 0),
);
$form['paypal']['booking_paypal_account'] = array ( $form['paypal']['booking_paypal_account'] = array (
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Account'), '#title' => t('Account'),
@@ -120,7 +127,13 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')), '#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_roomallocations', 0), '#default_value' => variable_get('booking_enable_roomallocations', 0),
); );
$form['features']['booking_enable_travelform'] = array (
'#type' => 'radios',
'#title' => t('Enable travel details form?'),
'#description' => t('Select whether to enable the form that allows attendees to enter their travel details.'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_travelform', 0),
);
$form['features']['booking_enable_studygroups'] = array ( $form['features']['booking_enable_studygroups'] = array (
'#type' => 'radios', '#type' => 'radios',
'#title' => t('Enable study group calculations?'), '#title' => t('Enable study group calculations?'),
@@ -128,25 +141,21 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')), '#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_studygroups', 0), '#default_value' => variable_get('booking_enable_studygroups', 0),
); );
$form['features']['booking_enable_travelform'] = array (
'#type' => 'radios',
'#title' => t('Enable travel details form?'),
'#description' => t('Select whether to enable the form that allows attendees to enter their travel details.'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_travelform', 0),
);
$form['features']['booking_readinggroup_id'] = array ( $form['features']['booking_readinggroup_id'] = array (
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Studygroup ID for the reading group'), '#title' => t('Studygroup ID for the reading group'),
'#description' => t("Set the ID for the studygroup that corresponds with the reading group. Set to zero if reading groups aren't in use."), '#description' => t("Set the ID for the studygroup that corresponds with the reading group. Set to zero if reading groups aren't in use. "
. " This option is only applicable if study groups are enabled. If in doubt, leave as zero."),
'#size' => 3, '#size' => 3,
'#maxlength' => 3, '#maxlength' => 3,
'#default_value' => variable_get('booking_readinggroup_id','0'), '#default_value' => variable_get('booking_readinggroup_id','0'),
); );
$form['features']['booking_publish_readinggroups'] = array ( $form['features']['booking_publish_readinggroups'] = array (
'#type' => 'radios', '#type' => 'radios',
'#title' => t('Display reading group colours on the Who\'s Coming page?'), '#title' => t('Display reading group colours on the Who\'s Coming page?'),
'#description' => t('Select whether to publish reading group colours.'), '#description' => t('Select whether to publish reading group colours. This option is only applicable if study groups are enabled.'),
'#options' => array (0 => t('No'), t('Yes')), '#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_publish_readinggroups', 0), '#default_value' => variable_get('booking_publish_readinggroups', 0),
); );
@@ -156,15 +165,6 @@ function booking_admin() {
'#title' => 'Configuration Options', '#title' => 'Configuration Options',
); );
$form['misc']['booking_allow_couples'] = array (
'#type' => 'radios',
'#title' => t('Allow married couples?'),
'#description' => t('Select whether to cater for married couples in the registration form'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_allow_couples', 0),
);
$form['misc']['booking_auto_confirm_email'] = array ( $form['misc']['booking_auto_confirm_email'] = array (
'#type' => 'radios', '#type' => 'radios',
'#title' => t('Automatic Registration Email'), '#title' => t('Automatic Registration Email'),
@@ -186,13 +186,7 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')), '#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_auto_show_on_lists', 0), '#default_value' => variable_get('booking_auto_show_on_lists', 0),
); );
$form['misc']['booking_use_paypal'] = array (
'#type' => 'radios',
'#title' => t('Use Paypal?'),
'#description' => t('Select whether to use paypal for automatic payment handling, or process payments manually.'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_use_paypal', 0),
);
$form['misc']['booking_enable_combined_pricing'] = array ( $form['misc']['booking_enable_combined_pricing'] = array (
'#type' => 'radios', '#type' => 'radios',
'#title' => t('Use Combined Pricing?'), '#title' => t('Use Combined Pricing?'),
@@ -229,6 +223,14 @@ function booking_admin() {
'#default_value' => variable_get('booking_default_gender', 'M'), '#default_value' => variable_get('booking_default_gender', 'M'),
); );
$form['regn_options']['booking_allow_couples'] = array (
'#type' => 'radios',
'#title' => t('Allow married couples?'),
'#description' => t('Select whether to cater for married couples in the registration form'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_allow_couples', 0),
);
$form['regn_options']['booking_enable_medicare'] = array ( $form['regn_options']['booking_enable_medicare'] = array (
'#type' => 'radios', '#type' => 'radios',
'#title' => t('Enable Medicare requirement?'), '#title' => t('Enable Medicare requirement?'),