Also see:
mod/assign/submission/comments/*
for a (fairly) simple plugin using the comments API.
Just ignore anything about "submission_comments_upgrade" - that's a complicated edge case.
General developer forum
Using the comment API
This discussion has been locked so you can no longer reply to it.