function template_preprocess_simplenews_newsletter_footer in Simplenews 6.2
Same name and namespace in other branches
- 6 simplenews.module \template_preprocess_simplenews_newsletter_footer()
- 7.2 simplenews.module \template_preprocess_simplenews_newsletter_footer()
- 7 simplenews.module \template_preprocess_simplenews_newsletter_footer()
Process variables to format the simplenews newsletter footer.
$variables contains:
- $node: newsletter node object
- $language: language object
- $key: email key [node|test]
See also
simplenews-newsletter-footer.tpl.php
File
- ./
simplenews.module, line 2563 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function template_preprocess_simplenews_newsletter_footer(&$variables) {
$variables['format'] = $variables['context']['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);
}