• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Analog of _setSilentEditOptions() for actionAddThread

guiltar

Well-known member
#1
Hello!

ControllerPublic_Post::actionSave calls method _setSilentEditOptions() before saving a post. So developer can insert a lot of extra actions with dw, post, thread, forum and input. Such a method would be very very useful in other similar places like ControllerPublic_Forum::actionAddThread. Otherwise developer can't insert extra actions in controller by a proper way. It's just a matter of one empty method (to be extended by devs), analog of _preSave() for DW.

Maybe it's not a bug, but critical for better development.
Thanks!
 
Last edited:

Mike

XenForo developer
Staff member
#2
This is really more of a suggestion. I understand why you want it, but it's not as if _setSilentEditOptions is actually the proper way of doing it -- you're just hooking into something that's in the right place, but for a different purpose.
 

Yoskaldyr

Well-known member
#3
@Mike, that's definitely is a feature. But, it only matter of couple lines of code to implement it and make add-on development way better!

Also it doesn't change anything or break any compability. Just simple thing solves many problems and headaches for devs.