function template_preprocess_simplenews_newsletter_body in Simplenews 6
Same name and namespace in other branches
- 8.2 simplenews.module \template_preprocess_simplenews_newsletter_body()
- 8 simplenews.module \template_preprocess_simplenews_newsletter_body()
- 6.2 simplenews.module \template_preprocess_simplenews_newsletter_body()
- 7.2 simplenews.module \template_preprocess_simplenews_newsletter_body()
- 7 simplenews.module \template_preprocess_simplenews_newsletter_body()
- 3.x simplenews.module \template_preprocess_simplenews_newsletter_body()
Process variables to format the simplenews newsletter body.
$variables contains:
- $node
- $language
See also
simplenews-newsletter-body.tpl.php
File
- ./
simplenews.module, line 2527 - Simplnews node handling, sent email, newsletter block and general hooks
Code
function template_preprocess_simplenews_newsletter_body(&$variables) {
$variables['title'] = check_plain($variables['node']->title);
$variables['body'] = $variables['node']->body;
}