muser-onclick Posted January 16, 2013 Share Posted January 16, 2013 Can I use actionObjectAddAfter, actionObjectUpdateBefore, actionObjectUpdateAfter and actionObjectDeleteAfter safely? These hooks are not documented in Prestashop 1.5 documentation, but are executed when object is modified. For example: ObjectModel.php, line 582: // @hook actionObject*UpdateBefore Hook::exec('actionObjectUpdateBefore', array('object' => $this)); Hook::exec('actionObject'.get_class($this).'UpdateBefore', array('object' => $this)); Thank you Link to comment Share on other sites More sharing options...
BigZ Posted January 16, 2013 Share Posted January 16, 2013 sure you can... most of the hook are not documented. Bad thing also, nothing checks if they succeeded or not Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now