Problem/Motivation

We've recently started using this module and it's been very useful in helping to split up node form fields between modes. One thing we could use is a way to make a form mode available on all bundles to selected roles. This would help prevent us from having to update hundreds (possibly thousands) of permissions needed to filter out our separate form mode from the default one.

As an aside, given the number of entity types and bundles that we're working with, it's impossible to use the module's admin form because it times out. We might want to look into this as well.

Steps to reproduce

N/A

Proposed resolution

Define and implement a separate permission along the lines of use The form mode %mode linked to all bundles on %entity_type_id

Remaining tasks

  1. Implement the permission
  2. Adjust admin UI to account for change

User interface changes

None with the basic change.

Some changes may be required on the admin form to handle large numbers of entity types, bundles, and user roles.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

geoffreyr created an issue. See original summary.

geoffreyr’s picture

This might be a little more complicated than I'd hoped because there's currently no way to enable or disable specific entity types from being managed by this module. It's all or nothing, which is probably why the admin form is crashing hard all the time.

I might take a look at https://www.drupal.org/project/form_mode_control/issues/3431354 which aims to fix some of the config mapping issues.

dieterholvoet’s picture

I refactored the module in #3565648: Fix configuration structure, this should be easier to implement now.