-
Posts
32 -
Joined
-
Last visited
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Posts posted by WildRAID
-
-
Is there any way to overload functions in classPost\classPostForms without direct code editing? Only with hooks.
For example, I want to add an additional field like "Topic Description". It's expected to be processed with common fields and saved to database by extending the common "insert\update topics". No additional queries.
Is that possible to reload compilePostData? Or interfere between constructions like$topic = array( 'title' => $this->_topicTitle,
and
$this->DB->insert( 'topics', $topic )
Seems "no", but i probably miss something important..
+++
Added later:
Also, it seems that i cant process the additional field even with extra query. Because function saveForm in 'post' section doesnt return anything. It ends with silentRedirect or with error. So, u cannot add an 'action overload' hook after this. >_<
Hooks in the middle of posting process?
in Feedback
Posted
Ok, thanks for the answer. ^_^