When the theme choosen for htmlmail is different from the current theme, the preprocess functions of the htmlmail theme is ignored.

So it should be explain somewhere in the documentation that the preprocess functions should not be used to avoid unexpected behaviors, in order to save debugging time for developpers.

To reproduce this issue : simplely use an admin theme (drupal core feature, admin_theme module, section module or other...), select a different theme for htmlmail, with a preprocess function that exits from the script, then send a test mail from htmlmail admin page.
The sent email will not go through the preprocess function!

I try to figure an elegant patch for this, but I didn't found any.

Comments

pillarsdotnet’s picture

Component: Documentation » Code
Assigned: Unassigned » pillarsdotnet
Category: feature » bug
Status: Needs review » Needs work

This may be a bug. I'll try to reproduce and come up with a fix, or at least document why the current behavior is desired and/or needed.

B-Prod’s picture

Thanks! If you need some help, I can contribute to you effort in solving this issue, and discuss the possible ways to fix that or provide patch... Just let me know.

salvis’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)