I have a small suggestion for improvement regarding HTML mailing (webform_mail_alter()
function).
Often developers will name some additional custom modules as webform_something
. Sometimes those custom supplementary modules will send emails. And then the current implementation of webform_mail_alter()
will hook in and will be expecting $message['params']['html']
to be available. This param is available when webform module sends its mails, but other custom/sub-modules may not have such parameter within their mails.
So I'd also check whether $message['params']['html']
is set to play nicer with submodules.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2840805-php-notice-mail-alter-2.patch | 578 bytes | bucefal91 |
|
Comments
Comment #2
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedI attach a patch. Hehe, it must be an easy guess that I actually have some such custom module :) I've tested it with my custom module and the PHP notice is gone.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedThanks!