Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
13 Aug 2008 at 11:27 UTC
Updated:
20 Aug 2010 at 11:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gpk commentedThe usual approach is to have a short one-liner first (e.g. "Dispatcher for *_alter implementations.") followed by a longer description (which is what we have at present).
This actually needs to be patched in core itself.
Also needs fixing in 6.x.
Can you make a proper patch? http://drupal.org/patch/create
Comment #2
axyjo commentedHere it is. Can someone just check the one-liner to see if it makes sense?
Comment #3
axyjo commentedForgot setting changes.
Comment #4
Anonymous (not verified) commentedI think it should read
Dispatch arrays for *_alter implementations.You need to update your working copy as well. Your 400+ lines off from the HEAD version.
Comment #5
axyjo commentedWhoops.. Diffed it against the wrong copy of Drupal. I'll also update my HEAD, just in case. I'll edit this post when I'm done.
Comment #6
axyjo commentedAlright. This is against the HEAD of around 5 minutes ago. Should fix the line number issue. And also fixed the message.
Comment #7
Anonymous (not verified) commentedComment #8
webchickI actually thought #2 was a bit more clear, so committed that one. Thanks!
Moving back for 6.x.
Comment #9
moshe weitzman commentedLooks to me like we repeat text now about structured arrays ...
Comment #10
webchickHm. That's true. But
Dispatch arrays for *_alter implementations.is far too short and non-descript to be an adequate summary of the function.Sounds like the "bigger" part after the one-line summary could use some work, then. In fact, we might want to be more verbose about how this function works since it's the lynchpin of all of our hook_foo_alter() hooks.
axyjo, could you take another stab?
Comment #11
axyjo commentedThis was taken care of in #593522: Upgrade drupal_alter().
Comment #12
gpk commentedOK needs backporting per #593522: Upgrade drupal_alter() then.
Comment #13
axyjo commented6.x already has a description though.
Comment #14
gpk commentedAs you said in your original report, there is a description but no one-line summary.
Comment #15
rdrh555 commentedLots of changes in D7, but I think I did what was needed here. Per #11, added (D7) one liner and (D7) descriptive summary (webchick #10).
Comment #16
jhodgdonThis looks fine to me. Although the D7 documentation has been much expanded since the patches above, the expansions appear all to be new functionality added to the function, and they don't apply to D6.
So I think the above patch in #15 is the right thing for D7. Thanks!
Comment #17
jhodgdonPatch needs to be rerolled from Drupal root.
Comment #18
rdrh555 commentedWrong Eclipse setting...correct patch:
Comment #19
jhodgdonThanks.
Comment #20
gábor hojtsyThanks, committed.