You are here

function theme_simplenews_newsletter in Simplenews 5

Theme the newsletter message subject and body.

1 theme call to theme_simplenews_newsletter()
simplenews_node_prepare in ./simplenews.module
Prepare node for sending

File

./simplenews.module, line 2769

Code

function theme_simplenews_newsletter($node, $tid) {
  $term = taxonomy_get_term($tid);
  $node->subject = '[' . $term->name . '] ' . $node->title;
  $node->body = '<h2>' . $node->title . "</h2>\n" . $node->body;
  return $node;
}