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

rdeboer’s picture

Makes sense, Nancy! - Rik

rdeboer’s picture

Status: Active » Fixed

Checked in with attribution.
Thanks Nancy!
Rik

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.