Support for custom Form Display Modes

Created on 13 April 2022, about 3 years ago
Updated 10 April 2023, about 2 years ago

Problem/Motivation

A content type (node) can have multiple Form Display Modes defined. At this moment only the form for the default form mode is available to configure for Akismet. The list of forms does not list the other Form Display Modes for a content type.

Steps to reproduce

1. Add a Form Display Mode on this page /admin/structure/display-modes/form.
2. Go to Akismet settings and add a new form (/admin/config/content/akismet/add-form).
3. Open the list "Akismet Form" list. There is no entry in the list for the Form Display Mode created in step 1.

Proposed resolution

Create support for custom Form Display Modes.

Remaining tasks

- implement
- create tests
- commit

User interface changes

none.

API changes

add argument $bundle to hook_akismet_form_info.

Data model changes

none?

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇳🇱Netherlands mvbaalen

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

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.71.5 2024