You are here

public function StateFlowNode::on_exit_published in State Machine 7.3

1 call to StateFlowNode::on_exit_published()
StateFlowNode::on_exit_scheduled in modules/state_flow/plugins/state_flow_node.inc
Handle unpublishing / publishing.

File

modules/state_flow/plugins/state_flow_node.inc, line 37
State Flow implementation of the State Machine class

Class

StateFlowNode
Class StateFlowNode.

Code

public function on_exit_published() {

  // If it is a scheduled event the transition has to be handled later because
  // we want to keep the current state.
  $event = $this
    ->get_event($this
    ->get_history_entity()->event);
  if ($event
    ->get_option('target') !== 'schedule') {
    $this->object->status = 0;
  }
}