Pergunta

What hook can I use to update the history table for my use case?

I am using the answers module. When viewing a question it appends a view of answers by format of view mode. The history table for the question type is updated, but not for the answer type. This has the effect that all comments on the answer are always tagged as new. I added code to the hook_node_view for the question type wherein I get all related answers and update the history table correctly for them. However, hook_node_view runs before hook_comment_view and now all comments do not get a tag at all. I probably need to alter the history table after hook_comment has run. Any suggestions?

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a drupal.stackexchange
scroll top