The definition of the $modules @param is "An array of the enabled modules."

This makes sense, but it also makes you think for a second. "Does it mean all the modules currently enabled? Or just the modules being enabled in the current request?"

Of course, if you had to guess, you'd probably guess correctly. But let's eliminate the guesswork.

Proposed wording: "An array of the modules being enabled." Patch forthcoming.

Comments

crookednumber’s picture

Status: Active » Needs review
StatusFileSize
new425 bytes

Patch.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks like a good change to me, thanks! 7.x and 8.x please.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Thanks CrookedNumber. Committed to 7.x and 8.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

David_Rothstein’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new1.26 KB

I think the new wording here is a bit misleading, since it says the modules are "being enabled" but actually they were already fully enabled before this hook is ever called.

Also, any wording change we make to hook_modules_enabled() should also be made to hook_modules_disabled(), hook_modules_installed(), etc...

Attached patch addresses both of those issues.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

OK. I have no objection to the wording change in this patch. Let's get it into 8.x and 7.x.

crookednumber’s picture

Agreed. Thanks for the second look, David.

catch’s picture

Issue tags: +Needs backport to D7

.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x and 8.x.

(Working from the road so can't review big complex issues right now -- picking away some smaller patches that are unlikely to break bigger patches.)

Automatically closed -- issue fixed for 2 weeks with no activity.