Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently we alter the modules admin form to remove modules. This works but is now superseded by the hidden flag that can be set on extensions.
Proposed resolution
Instead use hook_system_info_alter()
to set the hidden flag on the relevant modules (including paranoia).
Remaining tasks
User interface changes
If all modules in a given package (grouping) are hidden, the name of the empty package will no longer appear.
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff.txt | 552 bytes | nedjo |
#4 | paranoia-system-info-2894994-2.patch | 1.55 KB | nedjo |
Comments
Comment #2
nedjoComment #3
nedjoComment #4
nedjoOh, right, we still need to dynamically hide paranoia rather than hard-coding its hidden flag in the .info.yml file, so it can be manually enabled.
Comment #6
nedjoIn this fix I also modified the behaviour of
hook_paranoia_hide_modules()
to also return modules designated as disabled, since there isn't a use case where a module that is forcefully disabled should not also be hidden.