diff --git a/booking.admin.inc b/booking.admin.inc index 79bbb6f..1df3862 100644 --- a/booking.admin.inc +++ b/booking.admin.inc @@ -542,22 +542,23 @@ function booking_admin() '#maxlength' => 2000 ); - $form['management']['booking_export_include_fields_dynamic'] = array( - '#type' => 'select', - '#multiple' => TRUE, - '#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.'), - '#options' => _booking_get_person_fields(), - '#default_value' => variable_get('booking_export_include_fields_dynamic', ''), - ); - $form['management']['booking_import_include_fields_dynamic'] = array( - '#type' => 'select', - '#multiple' => TRUE, - '#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.'), - '#options' => _booking_get_person_fields(), - '#default_value' => variable_get('booking_import_include_fields_dynamic', ''), - ); + $booking_view_fields = _booking_get_person_fields(); + $form['management']['booking_export_include_fields_dynamic'] = array( + '#type' => 'select', + '#multiple' => TRUE, + '#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.'), + '#options' => $booking_view_fields, + '#default_value' => variable_get('booking_export_include_fields_dynamic', ''), +); +$form['management']['booking_import_include_fields_dynamic'] = array( + '#type' => 'select', + '#multiple' => TRUE, + '#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.'), + '#options' => $booking_view_fields, + '#default_value' => variable_get('booking_import_include_fields_dynamic', ''), +); //return system_settings_form($form); //make sure we update our custom sql view every time we change something on the admin page