You are here

function template_preprocess_simplenews_newsletter_footer in Simplenews 6

Same name and namespace in other branches
  1. 6.2 simplenews.module \template_preprocess_simplenews_newsletter_footer()
  2. 7.2 simplenews.module \template_preprocess_simplenews_newsletter_footer()
  3. 7 simplenews.module \template_preprocess_simplenews_newsletter_footer()

Process variables to format the simplenews newsletter footer.

$variables contains:

  • $node
  • $key
  • $language

See also

simplenews-newsletter-footer.tpl.php

File

./simplenews.module, line 2542
Simplnews node handling, sent email, newsletter block and general hooks

Code

function template_preprocess_simplenews_newsletter_footer(&$variables) {
  $variables['format'] = $variables['node']->simplenews['s_format'];
  $variables['unsubscribe_text'] = t('Unsubscribe from this newsletter', array(), $variables['language']->language);
  $variables['test_message'] = t('This is a test version of the newsletter.', array(), $variables['language']->language);
}