You are here

function subscriptions_mail_template in Subscriptions 6

Same name and namespace in other branches
  1. 5.2 subscriptions_mail.templates.inc \subscriptions_mail_template()
  2. 7 subscriptions_mail.templates.inc \subscriptions_mail_template()
  3. 2.0.x subscriptions_mail/subscriptions_mail.templates.inc \subscriptions_mail_template()
3 calls to subscriptions_mail_template()
subscriptions_mail_mail_edit_text in ./subscriptions_mail.module
Implementation of hook_mail_edit_text().
subscriptions_mail_subscriptions_mail_text in ./subscriptions_mail.module
Implementation of hook_subscriptions_mail_text().
subscriptions_mail_template_load in ./subscriptions_mail.templates.inc
Retrieve a mail template, either from the mail_edit table or take our default template in this file, passing it through t().

File

./subscriptions_mail.templates.inc, line 85
Subscriptions module mail templates constants.

Code

function subscriptions_mail_template($key, $langcode) {
  static $templates;
  if (!isset($templates[$langcode][$key])) {
    $templates[$langcode][$key] = subscriptions_mail_template_raw($key, $langcode);
  }
  return $templates[$langcode][$key];
}