$postData = new postData(); $postData->loadFromPostRequest(); executeHook("preValidation", $postData); //can trigger a whole post fail based on IP ban or failed capcha moduel. if(!$postData->isValidPost()){ //inside module hooks. there would be a postValidation() in contrast to preValidation() to stop files with pizza } .....