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.
_comment_update_node_statistics() runs after all comment hooks have run. This means that if you wanted to query that information, for example to denormalize the count into another table, you have to do all the same logic yourself. Putting it before the hook invocations means you can just query the count column in the table instead.
Comment | File | Size | Author |
---|---|---|---|
#1 | statistics.patch | 1.44 KB | catch |
statistics.patch | 1.28 KB | catch | |
Comments
Comment #1
catchAdded a comment.
Comment #2
nagba CreditAttribution: nagba commented+1
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedMakes sense.
Comment #4
Dries CreditAttribution: Dries commentedMakes sense to me too. Committed to CVS HEAD.