Handler for comment edits
I've been looking for the proper handler for comment edits, but can't find them.
For a new comment we can use "DiscussionController_AfterFormButtons_Handler" to add something after the form buttons, but what would be the same for a comment edit (with an id of Form_SaveComment)?
Best Answer
-
hgtonight MVP
There is no way currently. There was a patch that was recently applied to the master branch.
https://github.com/vanilla/vanilla/commit/30b893414290a48e916c886bdd9ac42d6005443a
The good news is two-fold:
- This patch already exists and is in the master branch
- You can apply this patch as a theme view override
Copy the file at that commit (raw) and place it in
themes/yourTheme/views/post/editcomment.php
.Now your existing hook should work for the editing of comments as well.
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
2
Answers
There is no way currently. There was a patch that was recently applied to the master branch.
https://github.com/vanilla/vanilla/commit/30b893414290a48e916c886bdd9ac42d6005443a
The good news is two-fold:
Copy the file at that commit (raw) and place it in
themes/yourTheme/views/post/editcomment.php
.Now your existing hook should work for the editing of comments as well.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.