Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
base system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Oct 2011 at 22:40 UTC
Updated:
12 Jul 2021 at 08:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pingers commentedA fair point... why does comment module contain the only implementation in {module}.install?
#890128: Comment body missing if comment module enabled after a content type module is where the commit came from (for comment.install).
d12eba1705dfa3c6f7da93f81c403b33de8fd8fc
The hook implementation runs regardless of whether it's in .module or .install when enabling a module. Consistency would be good though.
Probably doesn't need to be in .module.
Comment #10
quietone commentedhook_modules_enabled and hook_modules_disabled were removed in #1199946: Disabled modules are broken beyond repair so the "disable" functionality needs to be removed. Some grepping shows that all the modules_installed and modules_uninstalled are all in .module files except for a test module core/modules/system/tests/modules/router_installer_test/router_installer_test.install.
The API documentation for hook_modules_installed clearly states that it should be in .module and not .install. So, that should be moved.
Adding a patch.
Comment #11
quietone commentedThis is really a task.
Comment #12
quietone commentedComment #13
spokje- Reason for extension change clearly explained in #10.
- All other implementations of
hook_modules_installed()are in *.module files- Testbot is green
RTBC for me.
Comment #15
catchCommitted 831b208 and pushed to 9.3.x. Thanks!