public function StateFlowNode::on_enter_published in State Machine 7.3
Callback for when an entity 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 19 - State Flow implementation of the State Machine class
Class
- StateFlowNode
- Class StateFlowNode.
Code
public function on_enter_published() {
$this->object->published_revision_id = $this->object->{$this
->get_revision_key()};
$this->object->status = 1;
}