New answers tagged

0 votes

Stick comments on top

I would do the following: Add a new field to the comment with a field name of field_sticky. Create a view, showing comments, with a page display. Set the path of the display to whatever you want the ...
  • 16.4k
1 vote
Accepted

Module template for a comment field is not triggering comment_preprocess_field

Use base hook, instead of base_hook (no underscore): function MODULE_theme() { return [ 'field__field_FIELD_NAME' => [ 'base hook' => 'field', ] ]; } That should invoke the ...
  • 165k

Top 50 recent answers are included