Score:0

Enable HTML for invite module email

de flag

I'm using Drupal 9 and the Group invite module, which allows me to alter the text sent on email invitations.

I'm trying to use HTML in Invitation e-mail, but the module replaces HTML markup with a *.

I've implemented hook_form_alter() in a custom module and put this code.

$form['invitation_email']['invitation_body']['#type'] = 'text_format';
$form['invitation_email']['invitation_body']['#format'] = 'full_html';

Now CkEditor appears on the configuration pages, but when I'm altering the text and I click on the Save configuration button, I get this error.

InvalidArgumentException: The configuration property plugin_config.invitation_body.value doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 76 of /app/core/lib/Drupal/Core/Config/Schema/ArrayElement.php).

How can I solve this problem?

Alex Sh avatar
de flag
Solved the problem by installing MIME Mail module, so custom programming is not necessary.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.