Then you probably need to look into the class_dm_threadpost.php file that I mentioned. That is where the post/thread is created and I think errors are checked in one of the classes there. So, read that page and see what hook location is best for your use (and you may need to change the variable name). You can also probably just add the error to the $errors array too.
|