You are here

public function StateFlow::set_unpublished in State Machine 6

Same name and namespace in other branches
  1. 7 modules/state_flow/plugins/state_flow.inc \StateFlow::set_unpublished()
  2. 7.2 modules/state_flow/plugins/state_flow.inc \StateFlow::set_unpublished()
1 call to StateFlow::set_unpublished()
StateFlow::on_exit_published in modules/state_flow/plugins/state_flow.inc

File

modules/state_flow/plugins/state_flow.inc, line 72

Class

StateFlow

Code

public function set_unpublished() {
  $this->object->status = 0;
  drupal_write_record('node', $this->object, 'nid');
}