Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
You've never heard of module_iterate()? Not surprising, since this function is never used anywhere, in core or in contrib. And not only now - apparently it has been lingering since at least Drupal 4.6, and as unused then as it is now. It is an embarrassment to Drupal, and should be removed. Attached patch does that.
Comment | File | Size | Author |
---|---|---|---|
module_iterate_01.patch | 703 bytes | cwgordon7 | |
Comments
Comment #1
cburschkaAmazing. Are there any more easter eggs hidden in the code? :)
No functional changes, as expected.
Comment #2
Dries CreditAttribution: Dries commentedNuts. Removed from CVS HEAD. Thanks.
Comment #3
cburschkaShould it be removed from 6.x, or would it be an API change? We cannot be entirely certain that nothing in contrib uses it...
Comment #4
cwgordon7 CreditAttribution: cwgordon7 commentedRight, this should not be changed in 6.x.
Comment #5
catchThis was one of the oldest functions in core, via chx:
git show 8d5b4e7b8615b636eaef8f50eaac45d27dc52b33