The email for sending only the link is hardcoded to just the message followed by the link. There is no way to craft a custom e-mail with a boilerplate header or footer.
The attached patch adds theming support for 'sendlink' by adding three new theme hooks:
* print_mail_sendlink_html - Craft the message as an HTML message
* print_mail_sendlink_plain - Craft the message as a plaintext message
* print_mail_sendlink - Call the HTML or Plain theme functions depending on $format.
Themes can override these with print_mail_sendlink.tpl.php, print_mail_sendlink_html.tpl.php and print_mail_sendlink_plain.tpl.php template files.
Comment | File | Size | Author |
---|---|---|---|
#1 | print-theme_sendlink-1325048-1.patch | 2.7 KB | John Franklin |
print_mail-theme_sendlink.patch | 2.7 KB | John Franklin | |
Comments
Comment #1
John Franklin CreditAttribution: John Franklin commentedReroll for latest release.
Comment #2
Ryan258 CreditAttribution: Ryan258 commentedYour question has me wondering if I'm even able to get into $print['content'] and kick a few fields out. Is theming emails just not an option?
Comment #3
jcnventura CreditAttribution: jcnventura commentedThanks for the patch..
http://drupalcode.org/project/print.git/commit/573c754
As this is new functionality, I'm only adding it to the 2.x branch.
Comment #4.0
(not verified) CreditAttribution: commentedgrammar