Added tokens for studygroups and rooms
This commit is contained in:
@@ -500,6 +500,10 @@ function booking_token_info() {
|
||||
'name' => t('Last Name'),
|
||||
'description' => t('Last Name of the attendee.')
|
||||
);
|
||||
$info['tokens']['booking']['team-colour'] = array(
|
||||
'name' => t('Team Colour'),
|
||||
'description' => t('Reading group team of attendee.')
|
||||
);
|
||||
$info['tokens']['booking']['dietary'] = array(
|
||||
'name' => t('Dietary Requirements'),
|
||||
'description' => t('Specified dietary requirements of the attendee')
|
||||
@@ -552,6 +556,14 @@ function booking_token_info() {
|
||||
'name' => t('Registration Travel Summary'),
|
||||
'description' => t('Summary of travel details from user registration.')
|
||||
);
|
||||
$info['tokens']['booking']['studygroup-summary'] = array(
|
||||
'name' => t('Registration Study Group Summary'),
|
||||
'description' => t('Summary of allocated study groups.')
|
||||
);
|
||||
$info['tokens']['booking']['room-allocation'] = array(
|
||||
'name' => t('Room Allocation'),
|
||||
'description' => t('Listing of room allocated to attendee.')
|
||||
);
|
||||
$info['tokens']['booking']['travel-link'] = array(
|
||||
'name' => t('Travel form Link'),
|
||||
'description' => t('Link to the person\'s travel form.')
|
||||
@@ -654,6 +666,7 @@ function booking_define_personspecific_tokens($node)
|
||||
$tokens = array();
|
||||
$tokens['eventname'] = $event->booking_eventname;
|
||||
$tokens['contact-email'] = variable_get('booking_contact_email');
|
||||
$tokens['team-colour'] = ucwords($node->booking_readinggroup);
|
||||
$tokens['fname'] = ucwords(trim($node->booking_firstname));
|
||||
$tokens['lname'] = ucwords(trim($node->booking_lastname));
|
||||
$tokens['dietary'] = ucwords(trim($node->booking_dietary));
|
||||
@@ -671,5 +684,8 @@ function booking_define_personspecific_tokens($node)
|
||||
$tokens['paypal-deposit-amount'] = _booking_deposit_amount();
|
||||
$tokens['regn-summary'] = _booking_details_email_summary($node);
|
||||
$tokens['travel-summary'] = _booking_travelform_email_summary($node);
|
||||
$tokens['studygroup-summary'] = _booking_studygroup_email_summary($node);
|
||||
$tokens['room-allocation'] = _booking_room_email_summary($node);
|
||||
|
||||
return $tokens;
|
||||
}
|
Reference in New Issue
Block a user