Function __global->newsletter_variable_substitution

Definitions

sources/newsletter.php

  • Sub in newsletter variables.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$message Tempcode required parameter N/A N/A The original newsletter message
$subject SHORT_TEXT required parameter N/A N/A The newsletter subject
$lang LANGUAGE_NAME required parameter N/A N/A The language
$forename SHORT_TEXT Blank (empty string) N/A N/A Subscribers forename (blank: unknown)
$surname SHORT_TEXT Blank (empty string) N/A N/A Subscribers surname (blank: unknown)
$name ?SHORT_TEXT Null N/A N/A Subscribers name (or username) (null: generic)
$email_address EMAIL Blank (empty string) N/A N/A Subscribers e-mail address
$send_id ID_TEXT Blank (empty string) N/A N/A Specially encoded ID of subscriber (begins either 'n' for newsletter subscriber, or 'm' for member - then has normal subscriber/member ID following)
$hash SHORT_TEXT Blank (empty string) N/A N/A Password hash of subscriber (blank: can not unsubscribe by URL)
$extra_mappings array [] N/A N/A Extra mappings to be substituted

Return

  • The new newsletter message
  • Type: Tempcode
  • Set: N/A
  • Range: N/A