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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

John Franklin’s picture

Version: 6.x-1.9 » 6.x-1.16
FileSize
2.7 KB

Reroll for latest release.

Ryan258’s picture

Your 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?

jcnventura’s picture

Version: 6.x-1.16 » 7.x-2.x-dev
Status: Needs review » Fixed

Thanks 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

grammar