Add token for leader-helper pairs

This commit is contained in:
2014-06-20 13:07:46 +10:00
parent 1293dae510
commit e83db04800
5 changed files with 147 additions and 9 deletions

View File

@@ -580,6 +580,10 @@ function booking_token_info() {
'name' => t('Registration Study Group Summary'),
'description' => t('Summary of allocated study groups.')
);
$info['tokens']['booking']['leaderhelper-pair'] = array(
'name' => t('Registration Study Group Leader-Helper Pair'),
'description' => t('List out the leader and helper pairs, with intro text.')
);
$info['tokens']['booking']['room-allocation'] = array(
'name' => t('Room Allocation'),
'description' => t('Details of room allocated to attendee.')
@@ -709,6 +713,7 @@ function booking_define_personspecific_tokens($node)
$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['leaderhelper-pair'] = _booking_leader_helper_email_summary($node);
$tokens['room-allocation'] = _booking_room_email_summary($node);
$tokens['bed-type'] = _booking_room_bedtype_lookup($node->booking_room_bedtype);