Hi,

I am developing some node access grants for my nodes based on workflow and I noticed that for some nodes, I get $node->_workflow and for others, I have $node->workflow.

What is the difference?

Thanks,
Jakub

Comments

kerberos’s picture

Yeah, we noticed that as well - particularly in the context of bulk changes using the View Bulk Operations module.

-Daniel Chvatik
Adulmec

jvandyk’s picture

Status: Active » Fixed

$node->_workflow is the node's current workflow state, retrieved from the database and added to the node object when the node is loaded.

$node->workflow is the value of the workflow form when the node is submitted.

Status: Fixed » Closed (fixed)

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

kerberos’s picture

Thanks for the explanation, John.

-Daniel