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.
remove theme_comment_block();
add template_preprocess_comment_block();
create comment-block.twig for Startk theme
*edit* Please please please DO NOT REMOVE THEME FUNCTIONS. It will break everything other than the Stark theme.
Comment | File | Size | Author |
---|---|---|---|
#13 | refactoring_theme_comment_block-1779146-12.patch | 461 bytes | vlad.dancer |
#10 | refactoring_theme_comment_block-1779146-10.patch | 598 bytes | vlad.dancer |
#4 | 1779146-refactoring_comment_block-4.patch | 1.95 KB | podarok |
#1 | 1779146-comment-block.patch | 1.97 KB | MadFish |
Comments
Comment #1
MadFish CreditAttribution: MadFish commentedComment #2
podaroklooks good!
thanks
Comment #3
andypostRequire crlf at the end of the file
Comment #4
podarokfixed #3
commited #1
Comment #5
podarokComment #6
podarokcommited into 8.x branch
Comment #8
Fabianx CreditAttribution: Fabianx commentedReopened due to not having been merged to front-end branch.
*DO NOT RENAME theme_ functions for now*
Needs re-roll.
Comment #9
vlad.dancerComment #10
vlad.dancerJust checked, patch already in front-end branch.
Don't forget close issues if it marked as fixed in "Core theme functions" g.docs!
But i did some func. doc changes + renamed preprocess func. Need review
Comment #11
Fabianx CreditAttribution: Fabianx commentedI thought template_ was correct for the very first implementation?
@psynaptic: Can you have a look?
Comment #12
podarok#10 make sense for me
Workaround used for comment module only, why template_ ?
Comment #13
vlad.dancerIt seems to be we using template_preprocess for initial adding variables, so below is my patch just with doc block update.
Comment #14
merdekiti CreditAttribution: merdekiti commentedComment #15
podarok#13 commited / push to front-end
Comment #16.0
(not verified) CreditAttribution: commentedadded desperate plea for help