Enable HTML for Group invite module emails

Created on 30 January 2022, over 2 years ago
Updated 14 April 2024, 3 months ago

I'm using Drupal 9 and Group invite 2.0.1 module.

Configuration for this module allows to alter the text on email invitations: /admin/group/content/manage/groupname-group_invitation

I'm trying to use HTML in "Invitation e-mai" body, but the Group invite module replaces HTTML with "*" symbol.

So I've created hook_form_alter() in my custom module and putted this code:

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

Now CkEditor appears on Group invite configuration pages, but when I'm altering the text and pressing "Save configuration" I'm receiving the 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).

Maybe somebody could point me out how to solve this problem?

Or is the any way to use HTML in invitation emails?

✨ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡¬πŸ‡ͺGeorgia almador

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024