Tokenize the header and footer
verot - October 15, 2009 - 10:24
| Project: | Simplenews Template |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When you use tokens in the header or footer, for instance !newsletter_url, the tokens are not replaced.
The mail_alter hook in the module calls a function which adds the header and footer to the email generated by simplenews. The patch simply loads the tokens at that time, and filters the header and footer with the tokens array.
| Attachment | Size |
|---|---|
| template_token.patch | 1.12 KB |

#1
Commited on dev (release will be available midnight)
Seems to be working, mind to test it?
#2
Automatically closed -- issue fixed for 2 weeks with no activity.