Problem/Motivation
The confirmation form (/admin/modules/list/confirm) of module installation displays only the first module that is requiring another module to be installed. It can be reproduced when several modules require the same module (for example, RESTful Web Services and JSON:API require Serialization).
Steps to reproduce
- Install a fresh Drupal version (Minimal or Standard profile);
- Go to "Extend" page (/admin/modules);
- Select "RESTful Web Services" and "JSON:API" and click "Install";
According to the confirmation page, only JSON:API requires Serialization to be enabled. But this is not true 🤷♂️
Proposed resolution
Display all modules that require some dependency to be installed.
Remaining tasks
- Review and decide if UI is good enough (with adding other modules we're duplicating the same sentence multiple times);
- Code review
- Update screenshots, include one with multiple dependencies are listed
User interface changes
Before:

After:

| Comment | File | Size | Author |
|---|---|---|---|
| #16 | reroll_diff_1-15.txt | 1.76 KB | samitk |
| #16 | 3190826-15.patch | 2.81 KB | samitk |
| Screen Shot on 2021-01-04 at 15:42:16.png | 70.83 KB | matroskeen | |
| Screen Shot on 2021-01-04 at 15:30:55.png | 56.78 KB | matroskeen |
Issue fork drupal-3190826
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:
- 3190826-show-all-selected-modules-install
changes, plain diff MR !201
Comments
Comment #3
matroskeenComment #4
matroskeenComment #5
matroskeenComment #6
matroskeenComment #7
benjifisherUsability review
We discussed this issue at #3191695: Drupal Usability Meeting 2021-01-15. The consensus is that we should have one bullet point (
<li>element) for each additional required module. Then list all the selected modules that require it inline. Using the example in the issue summary:It will make the list easier to scan for the additional required modules if each one is listed just once. Also, the current solution could be overwhelming if there are a dozen additional modules, each required by 4 or 5 selected modules.
We did not discuss the exact text to use, so feel free to come up with a variant. I used the format above since it avoids worrying about the "and". If there is only one selected module, then use the existing text.
Comment #9
dinazaur commentedComment #14
nod_Thanks for the patch, it's been a while so the merge request doesn't apply anymore. we'll need to update the code to 10.1.x
Comment #15
samitk commentedComment #16
samitk commentedUpdated Patch for 10.1.x
Reroll https://git.drupalcode.org/project/drupal/-/merge_requests/201/diffs
Comment #17
nod_Here
$normalized_listis not used anywhere.The change to the part of the code below is missing.
would be good to keep the same format as the code it's replacing. There is no reason to change this piece of code, we can add the if around it.
Comment #18
nod_Comment #19
benjifisherI have not seen that issue tag before. It looks as though there are currently 6 issues with the tag, all updated within the last week: https://www.drupal.org/project/issues/search?issue_tags=Needs%20careful%....
We have a MR (Comments 1-9) and a patch (Comment 15). I guess the meaning of the issue tag is to start over from the MR and ignore the patch. I am adding an item to the Remaining tasks in the IS.
Comment #20
nod_yeah added the little text after:
careful reroll
The patch can be tricky to reroll and some code might get lost in the process. When rerolling this issue please make sure all the parts of the patch are kept (new files, new tests, all the changes to the different parts of the file, changes to es6 files ported to .js files, etc.)
Comment #24
nicxvan commentedComment #25
quietone commentedI know this needs updated screenshots but the code is available for a review.
Comment #26
quietone commentedComment #27
quietone commentedWhat I failed to realize here is that this confirm form was updated after this issue was created and after the Usability review here. It was in #3086941: Improve the required theme/module installation warning which was committed in Aug 2025. That issue correctly includes the all the dependent modules. That makes this issue a duplicate that can be closed.
Any improvements to the confirm form should be done in a new issue.