Rik, you have an option that disallows a blank comment. Why not just make the field required?
if (!variable_get('workflow_extensions_allow_blank_comments', TRUE)) {
$form['workflow']['workflow_comment']['#required'] = TRUE;
}
I put it at line 187, right after setting the validation function, but I will leave that to you.
Comments
Comment #1
rdeboerMakes sense, Nancy! - Rik
Comment #2
rdeboerChecked in with attribution.
Thanks Nancy!
Rik