You are here

function subscriptions_mail_template in Subscriptions 7

Same name and namespace in other branches
  1. 5.2 subscriptions_mail.templates.inc \subscriptions_mail_template()
  2. 6 subscriptions_mail.templates.inc \subscriptions_mail_template()
  3. 2.0.x subscriptions_mail/subscriptions_mail.templates.inc \subscriptions_mail_template()
2 calls to subscriptions_mail_template()
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().
_subscriptions_mail_mail_edit_text in ./subscriptions_mail.mail_edit.inc
Implements hook_mail_edit_text().

File

./subscriptions_mail.templates.inc, line 94
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];
}