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
); );
$form['management']['booking_export_include_fields_dynamic'] = array( $booking_view_fields = _booking_get_person_fields();
'#type' => 'select', $form['management']['booking_export_include_fields_dynamic'] = array(
'#multiple' => TRUE, '#type' => 'select',
'#title' => t('Not In Use - Select database fields'), '#multiple' => TRUE,
'#description' => t('Select database fields to export to CSV. Ensure you hold down control/command when selecting multiple options.'), '#title' => t('Not In Use - Select database fields'),
'#options' => _booking_get_person_fields(), '#description' => t('Select database fields to export to CSV. Ensure you hold down control/command when selecting multiple options.'),
'#default_value' => variable_get('booking_export_include_fields_dynamic', ''), '#options' => $booking_view_fields,
); '#default_value' => variable_get('booking_export_include_fields_dynamic', ''),
$form['management']['booking_import_include_fields_dynamic'] = array( );
'#type' => 'select', $form['management']['booking_import_include_fields_dynamic'] = array(
'#multiple' => TRUE, '#type' => 'select',
'#title' => t('Not In Use - Select database fields'), '#multiple' => TRUE,
'#description' => t('Select database fields to import from an uploaded CSV file. Ensure you hold down control/command when selecting multiple options.'), '#title' => t('Not In Use - Select database fields'),
'#options' => _booking_get_person_fields(), '#description' => t('Select database fields to import from an uploaded CSV file. Ensure you hold down control/command when selecting multiple options.'),
'#default_value' => variable_get('booking_import_include_fields_dynamic', ''), '#options' => $booking_view_fields,
); '#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