Not an easy way to exclude a content type from going through workflow. May want to consider common content types being automatically ignored, like webform.

Comments

fmitchell’s picture

Status: Active » Needs review
fmitchell’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

kepford’s picture

How do you ignore content types? Can't find a setting.

fmitchell’s picture

In your plugin, create a condition that would return TRUE in the ignore method. You could do something like:

public function ignore() {
  if ($node->type == 'my_node_type') { return TRUE; }
  else { return FALSE; }
}
kepford’s picture

Thanks Fredric. I was stumped. I had to modify you snippet a bit to get at the node type.

  public function ignore(&$node) {
    if ($this->object->type == 'my_node_type') {
      return FALSE;
    }
    else {
      return TRUE;
    }
  }