You are here

function hook_state_flow_event in State Machine 7.3

Respond to an entity state change.

Parameters

string $state: The state that the entity is changing to.

object $entity: The entity that has changed.

string $event_name: The name of the event that triggered the state change.

object $history_event: The history event that just occurred.

1 invocation of hook_state_flow_event()
state_flow_entity_invoke_event_handlers in modules/state_flow_entity/state_flow_entity.module
Inform external systems about a workflow transition.

File

modules/state_flow_entity/state_flow_entity.api.php, line 89
Define a new StateMachine for the node

Code

function hook_state_flow_event($state, $entity, $event_name, $history_event) {
}