It will be nice if more than one state can publish the node.

For example I have states: Pending approval (unpublished node), Online (published node), Expired (published node), Offline (unpublished node)

So, states Online and expired should publish the node.

I added hook hook_publish_statuses() and in this hook you should return array with states machine names which should publish node. By default only 'published' state publish node.

Comments

Loparev created an issue. See original summary.

loparev’s picture

StatusFileSize
new2.08 KB

Status: Needs review » Needs work

The last submitted patch, 2: workbench_moderation-2550735-2.patch, failed testing.

loparev’s picture

StatusFileSize
new2.09 KB
loparev’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: workbench_moderation-2550735-3.patch, failed testing.

loparev’s picture

loparev’s picture

Issue summary: View changes
pribeh’s picture

I really need this functionality. Did you ever get this to work @Loparev?