email updates
This commit is contained in:
@@ -1512,6 +1512,8 @@ function _booking_leader_helper_email_summary($node) {
|
||||
array(':eid' => $event->eid));
|
||||
$studygroups = $studygroups_query->fetchAllAssoc('sid');
|
||||
|
||||
$rows[] = "<ul>";
|
||||
|
||||
foreach ($studygroups as $studygroup) {
|
||||
//don't print info about the readings groups
|
||||
if ($studygroup->booking_is_readinggroup == 'Y') {
|
||||
@@ -1559,7 +1561,7 @@ function _booking_leader_helper_email_summary($node) {
|
||||
$otherperson_phone = $other->booking_mobile;
|
||||
}
|
||||
|
||||
$rows[] = t('!role for !descrip. Your !otherrole is !other. You can contact them on !phone or !email.',
|
||||
$rows[] = t('<li>!role for !descrip. Your !otherrole is !other. You can contact them on !phone or !email.</li>',
|
||||
array('!role' => $role, '!id' => $studygroup->sid, '!descrip' => $studygroup->booking_studygroup_descrip,
|
||||
'!otherrole' => $otherrole, '!other' => $otherperson_name, '!phone' => $otherperson_phone, '!email' => $otherperson_email,
|
||||
));
|
||||
@@ -1567,6 +1569,8 @@ function _booking_leader_helper_email_summary($node) {
|
||||
}
|
||||
}
|
||||
|
||||
$rows[] = "</ul>";
|
||||
|
||||
//format the output to be used in an email
|
||||
foreach ($rows as $key => $value) {
|
||||
$rows[$key] = wordwrap($value);
|
||||
|
Reference in New Issue
Block a user