Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In order to confine the responsibilities of the mailsystem module, the mailsystem_html_to_text
method is extracted into a separate independent submodule.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1538148-Extract-mailsystem_html_to_text-into-a-submodule.patch | 59.35 KB | znerol |
0001-Extract-mailsystem_html_to_text-into-a-submodule.patch | 59.91 KB | znerol | |
Comments
Comment #1
pillarsdotnet CreditAttribution: pillarsdotnet commentedActually, it should be a core patch.
Comment #2
znerol CreditAttribution: znerol commentedOK, would it be possible to remove the code from mailsystem completely?
Comment #3
pillarsdotnet CreditAttribution: pillarsdotnet commentedAs soon as it gets patched in core, yes.
If you have a problem with how mailsystem_html_to_text() is implemented, I would entertain a patch either to fix it or to let the user choose between the system version and the improved version included with mailsystem.
Comment #4
znerol CreditAttribution: znerol commentedI do not use
mailsystem_html_to_text
at all, my long term goal is to get rid of thehook_init
implementation in mailsystem. The methodmailsystem_html_to_text
is referenced there at the moment and I'm just offering an alternative approach.That is exactly the purpose of this patch: Extract it into its own module plus wrap it into a
EnhancedHTMLtoTextMailsystem
class such that users may select it as the formatter class in the mailsystem admin ui. Currently it is not exposed at all to end users.Comment #5
pillarsdotnet CreditAttribution: pillarsdotnet commentedOkay; I'll take a look.
Comment #6
znerol CreditAttribution: znerol commentedUpdated patch for 7.x-3.x