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.
Currently comment_wrapper doesn't have contextual links. Was this purposefully done?
Skinr module, for instance requires it (and shouldn't contextual allow any module to modify any hook?)
Also, due to the placement of the contextual links, when adding additional contextual links, the alignment is sometimes off (centered for the "powered by drupal" block, for instance).
Attached patch fixes this.
Comment | File | Size | Author |
---|---|---|---|
#14 | 674546-14.patch | 1.73 KB | Jacine |
#10 | contextual_comment_wrapper_2.patch.patch | 786 bytes | Jacine |
#7 | contextual_comment_wrapper_2.patch | 710 bytes | moonray |
#4 | contextual_comment_wrapper_1.patch | 754 bytes | moonray |
#1 | contextual_comment_wrapper.patch | 1.25 KB | moonray |
Comments
Comment #1
moonray CreditAttribution: moonray commentedUpdated patch for updated Drupal version.
Comment #2
Jacine+1 for this patch.
I would like some clarification on this as well.
It really sucks not being able to use this in more places, namely right after
<body>
and and in comment wrapper.Comment #3
sunwhy that?
Powered by Dreditor.
Comment #4
moonray CreditAttribution: moonray commentedSorry separate issue. Breaking it out, and rerolling.
Comment #5
sunThanks!
Comment #7
moonray CreditAttribution: moonray commentedOK, let's try with an up to date version.
Comment #8
sunOdd. Still good.
Comment #10
JacineJust rerolling @moonray's patch to see if the testbot's problem was with the way it was generated. No changes from his patch.
Comment #11
Jacineyay, green.
Comment #12
realityloop#10: contextual_comment_wrapper_2.patch.patch queued for re-testing.
Comment #13
Dries CreditAttribution: Dries commentedLooks like we need to document these variables in the phpDoc.
Also, reading the phpdoc, what does it mean to 'wrap comments'. Weird name, but probably separate issue.
Comment #14
JacineYes, "wrap comments" is a little odd, but then again so is this whole template file. ;) I changed it to: "Default theme implementation to provide an HTML container for comments." I also added docs for the title_suffix/prefix. Let me know if it needs anything else.
Comment #15
sunComment #16
webchickThis doc looks consistent with what's in node.tpl.php.
Committed to HEAD. Thanks!