test meta tokens
This commit is contained in:
@@ -701,22 +701,35 @@ function booking_admin() {
|
||||
|
||||
$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', ''),
|
||||
);
|
||||
|
||||
'#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', ''),
|
||||
);
|
||||
|
||||
$form['meta-tokens'] = array(
|
||||
'#type' => 'fieldset',
|
||||
'#title' => 'Meta Token Definitions',
|
||||
'#collapsible' => TRUE,
|
||||
);
|
||||
$form['meta-tokens']['booking_studygroup_summary_li_text'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Study Group Summary Format'),
|
||||
'#default_value' => variable_get('booking_studygroup_summary_li_text',
|
||||
'<b>[meta-booking:studygroup-role]</b> for group <b>[meta-booking:studygroup-descrip]</b>, which will occur on <b>[meta-booking:studygroup-weekday]</b>. <b>[meta-booking:studygroup-explan]</b>'),
|
||||
'#description' => 'List element definition (using tokens) for study group summary in emails.',
|
||||
);
|
||||
|
||||
//return system_settings_form($form);
|
||||
//make sure we update our custom sql view every time we change something on the admin page
|
||||
$form = system_settings_form($form);
|
||||
|
Reference in New Issue
Block a user