I’m writing a module that uses flag to handle notifications, and one of the options is to be notified of replies to a given comment.
I can implement without problem hook_comment_publish($comment)
, but I want to get all of its parent comments so that I can pick up the users that flagged them.
So, how can I retrieve all the parent comments of a given comment (if any)? I noticed that in taxonomy there is a taxonomy_get_parents($tid)
but I can’t find anything similar for threatened comments.