remove unnecessary call to _booking_get_person_fields()

This commit is contained in:
2016-06-01 22:18:39 +10:00
parent 243a7691b6
commit 647853326c

View File

@@ -542,22 +542,23 @@ function booking_admin()
'#maxlength' => 2000 '#maxlength' => 2000
); );
$booking_view_fields = _booking_get_person_fields();
$form['management']['booking_export_include_fields_dynamic'] = array( $form['management']['booking_export_include_fields_dynamic'] = array(
'#type' => 'select', '#type' => 'select',
'#multiple' => TRUE, '#multiple' => TRUE,
'#title' => t('Not In Use - Select database fields'), '#title' => t('Not In Use - Select database fields'),
'#description' => t('Select database fields to export to CSV. Ensure you hold down control/command when selecting multiple options.'), '#description' => t('Select database fields to export to CSV. Ensure you hold down control/command when selecting multiple options.'),
'#options' => _booking_get_person_fields(), '#options' => $booking_view_fields,
'#default_value' => variable_get('booking_export_include_fields_dynamic', ''), '#default_value' => variable_get('booking_export_include_fields_dynamic', ''),
); );
$form['management']['booking_import_include_fields_dynamic'] = array( $form['management']['booking_import_include_fields_dynamic'] = array(
'#type' => 'select', '#type' => 'select',
'#multiple' => TRUE, '#multiple' => TRUE,
'#title' => t('Not In Use - Select database fields'), '#title' => t('Not In Use - Select database fields'),
'#description' => t('Select database fields to import from an uploaded CSV file. Ensure you hold down control/command when selecting multiple options.'), '#description' => t('Select database fields to import from an uploaded CSV file. Ensure you hold down control/command when selecting multiple options.'),
'#options' => _booking_get_person_fields(), '#options' => $booking_view_fields,
'#default_value' => variable_get('booking_import_include_fields_dynamic', ''), '#default_value' => variable_get('booking_import_include_fields_dynamic', ''),
); );
//return system_settings_form($form); //return system_settings_form($form);
//make sure we update our custom sql view every time we change something on the admin page //make sure we update our custom sql view every time we change something on the admin page