You are here

function theme_simplenews_newsletter_footer in Simplenews 5

Theme the footer.

1 theme call to theme_simplenews_newsletter_footer()
_simplenews_send in ./simplenews.module
Send the newsletter

File

./simplenews.module, line 2779

Code

function theme_simplenews_newsletter_footer($node, $hash) {
  if ($node->s_format == 'html') {
    $node->body .= '<p>-- <br />' . l(t('Click here to unsubscribe from this newsletter'), 'newsletter/confirm/remove/' . $hash, array(), NULL, NULL, TRUE) . '</p>';
  }
  else {
    $node->body .= "\n\n-- \n" . t('Unsubscribe from this newsletter: @url', array(
      '@url' => url('newsletter/confirm/remove/' . $hash, NULL, NULL, TRUE),
    ));
  }
  return $node;
}