You are here

function state_flow_node_update in State Machine 6

Same name and namespace in other branches
  1. 7 modules/state_flow/state_flow.module \state_flow_node_update()
  2. 7.2 modules/state_flow/state_flow.module \state_flow_node_update()

Implementation of hook_node_update().

File

modules/state_flow/state_flow.module, line 243
A base implementation of the state machine class and its relationship to revisions

Code

function state_flow_node_update(&$node) {
  $state_flow = state_flow_load_state_machine($node);
  $state_flow
    ->persist();
  state_flow_prevent_live_revision($node->nid);
}