You are here

function state_flow_node_insert in State Machine 6

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

Implementation of hook_node_insert().

File

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

Code

function state_flow_node_insert(&$node) {
  $state_flow = state_flow_load_state_machine($node);
  $state_flow
    ->persist();
}