I'm currently running a forum-like site where if a user leaves the post completely empty and hits the post button, an error is thrown. What I would like, is to replace that error (an empty string) with static content. So, for example, that automatically the words No comment
get posted, instead of an error being thrown.
The relevant code currently is:
if ($stripped_whitespace == '') {
error($config['error']['tooshort_body']);
}