public function StateFlowNode::on_enter_unpublished in State Machine 7.3
Callback for when a node enters the unpublished state.
Make sure this revision is the one going to the node table.
File
- modules/
state_flow/ plugins/ state_flow_node.inc, line 29 - State Flow implementation of the State Machine class
Class
- StateFlowNode
- Class StateFlowNode.
Code
public function on_enter_unpublished() {
// "published_revision_id" is somewhat of a misnomer here. It's really
// "the revision_id that is in the node table."
$this->object->published_revision_id = $this->object->{$this
->get_revision_key()};
$this->object->revision = FALSE;
$this->object->state_flow_node_on_enter_unpublished = TRUE;
}