remove unnecessary call to _booking_get_person_fields()
This commit is contained in:
@@ -542,12 +542,13 @@ 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(
|
||||||
@@ -555,7 +556,7 @@ function booking_admin()
|
|||||||
'#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', ''),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user