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.
module_implements() currently fails to detect an include file if the file is already loaded during cache building. That way hook implementations are missed when the file then isn't loaded during another page request.
Attached a fix including a test for that.
Comment | File | Size | Author |
---|---|---|---|
#2 | module_implements_fix_0.patch | 3.35 KB | fago |
#1 | module_implements_fix.patch | 3.35 KB | fago |
module_implements_fix.patch | 2.86 KB | fago | |
Comments
Comment #1
fagoI noted the added file for the test was missing in the patch. Added it.
Comment #2
fagoHello bot, please test my patch!
Comment #3
catchLooks sensible, code only runs on cache rebuild so no particular reason to check module_hook() first.
Comment #4
fagoAny chance to get this committed soon? :)
I'm using that grouping functionality for rules and without that patch rules won't find its files after a cache rebuild.
Comment #5
realityloop#2: module_implements_fix_0.patch queued for re-testing.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!