make html email links dynamic

This commit is contained in:
2017-09-12 15:07:42 +10:00
parent 557b99966d
commit d01be3b8a1
4 changed files with 89 additions and 112 deletions

View File

@@ -87,6 +87,17 @@ function _booking_ucname($string) {
return $string;
}
/**
* Helper function to generate associative array of 3 email links supported by html email template
*/
function _booking_html_emails_links() {
return array(
'The Week' => 'https://www.studyweek.net/the-week/whats-happening',
'Resources' => 'https://www.studyweek.net/studynotes',
'Who\'s Coming' => 'https://www.studyweek.net/coming',
);
}
/**
* Helper function to perform some validity checking of email addresses