add extra meta token
This commit is contained in:
@@ -726,11 +726,27 @@ function booking_admin() {
|
|||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('Study Group Summary Format'),
|
'#title' => t('Study Group Summary Format'),
|
||||||
'#default_value' => variable_get('booking_studygroup_summary_li_text',
|
'#default_value' => variable_get('booking_studygroup_summary_li_text',
|
||||||
'You are a <b>[meta-booking:studygroup-role]</b> for group <b>[meta-booking:studygroup-descrip]</b>, which will occur on [meta-booking:studygroup-weekday].<br /><b>[meta-booking:studygroup-explan]</b>'),
|
'You are a <b>[meta-booking:studygroup-role]</b> for group <b>[meta-booking:studygroup-descrip]</b>, which will occur on [meta-booking:studygroup-weekday].' .
|
||||||
'#description' => 'List element definition (using tokens) for study group summary in emails.',
|
'<br /><b>[meta-booking:studygroup-explan]</b>'
|
||||||
|
),
|
||||||
|
'#description' => 'List element definition (using tokens) for token [booking:studygroup-summary], which is the study group summary in emails. ' .
|
||||||
|
'Note: Don\'t add the li tags, they will be added automatically.',
|
||||||
'#size' => 150,
|
'#size' => 150,
|
||||||
'#maxlength' => 2000,
|
'#maxlength' => 2000,
|
||||||
);
|
);
|
||||||
|
$form['meta-tokens']['booking_studygroup_leaderhelperpair_text'] = array (
|
||||||
|
'#type' => 'textfield',
|
||||||
|
'#title' => t('Leader/Helper Pair Format'),
|
||||||
|
'#default_value' => variable_get('booking_studygroup_leaderhelperpair_text',
|
||||||
|
'<b>[meta-booking:studygroup-role]</b> for <b>[meta-booking:studygroup-descrip]</b>. ' .
|
||||||
|
'Your <b>[meta-booking:studygroup-otherrole]</b> is <b>[meta-booking:studygroup-othername]</b>. ' .
|
||||||
|
'You can contact them on <b>[meta-booking:studygroup-otherphone]</b> or <b>[meta-booking:studygroup-otheremail]</b>.'
|
||||||
|
),
|
||||||
|
'#description' => 'List element definition (using tokens) for token [booking:leaderhelper-pair], which is the study group leader/helper pair information in emails. ' .
|
||||||
|
'Note: Don\'t add the li tags, they will be added automatically.',
|
||||||
|
'#size' => 150,
|
||||||
|
'#maxlength' => 2000,
|
||||||
|
);
|
||||||
|
|
||||||
//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
|
||||||
|
Reference in New Issue
Block a user