Allow using the readmehelp for all modules with no module help.

Created on 22 February 2018, over 6 years ago
Updated 3 March 2023, over 1 year ago

Currently, the dependency should be put in the MODULE.info.yml file to automatically display module's README file on the admin/help/MODULE page. The readmehelp configuration form will allow to use it by any module even if it has no dependency.

TODO:

1. Create config form with the list of all enabled modules to assign for automatic displaying their README on the help page. By default, any module which don't implement hook_help() in the MODULE.module file should be checked. Example:

https://cgit.drupalcode.org/securitytxt/tree/securitytxt.info.yml#n6
https://cgit.drupalcode.org/securitytxt/tree/config/schema/securitytxt.s...
https://cgit.drupalcode.org/securitytxt/tree/config/install/securitytxt....
http://cgit.drupalcode.org/securitytxt/tree/src/Form/SecuritytxtConfigur...

2. Implement appropriate hooks in the readmehelp.module file, so when a module is uninstalled then clean up the config for the module. Or, check the readmehelp config for the module when it is installed (if hook_help() not implemented).

3. Make appropriate changes:

https://cgit.drupalcode.org/readmehelp/tree/src/Controller/ReadmeHelpCon...
https://cgit.drupalcode.org/readmehelp/tree/src/Plugin/HelpSection/Readm...
https://cgit.drupalcode.org/readmehelp/tree/README.md

4. Adjust tests for the changes:

https://cgit.drupalcode.org/readmehelp/tree/tests/modules/readmehelp_test

5.

6. Implement uninstall hook in the readmehelp.install so when the readmehelp is uninstalled then clean up all the saved configuration.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇪Estonia drugan

Live updates comments and jobs are added and updated live.
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