Last modified: 2014-06-06 04:12:26 UTC
For some hooks like ArticleDelete or ArticleSave we have also hooks after completion (ArticleDeleteComplete, ArticleSaveComplete) but no hooks in case of an fail. So I suggest to introduce ArticleDeleteFail and ArticleSaveFail and so on. In case one wants to run some code before and after the action there is no clean way of finishing this in case the action didn't go the right way. The question would be, what to do if i.e. a user defined hook-function of ArticleDelete would return false. Should ArticleDeleteFail be called or not? I guess it better should.