You are here

function _invite_get_mail_template in Invite 5

Same name and namespace in other branches
  1. 5.2 invite.module \_invite_get_mail_template()
  2. 6.2 invite.module \_invite_get_mail_template()
  3. 7.2 invite.module \_invite_get_mail_template()

Returns the configured or default e-mail template.

Return value

The localized e-mail body.

3 calls to _invite_get_mail_template()
invite_form_submit in ./invite.module
Forms API callback; processes the incoming form data.
invite_settings in ./invite.module
Menu callback; display invite settings form.
theme_invite_form in ./invite.module
Theme function for the invite form.

File

./invite.module, line 1330
Allows your users to send and track invitations to join your site.

Code

function _invite_get_mail_template() {
  $template = t("Your friend, [inviter-raw], has invited you to join [site-name] at [site-url].\n\nTo become a member of [site-name], click the link below or paste it into the address bar of your browser.\n\n[join-link]\n\n----------\n[invite-message-raw]");
  return variable_get('invite_default_mail_template', $template);
}