function state_flow_entity_get_state in State Machine 7
Same name and namespace in other branches
- 7.3 modules/state_flow/state_flow.module \state_flow_entity_get_state()
- 7.2 modules/state_flow/state_flow.module \state_flow_entity_get_state()
Getter callback for the "state" property on node bundles using workflow.
1 string reference to 'state_flow_entity_get_state'
- state_flow_entity_property_info_alter in modules/
state_flow/ state_flow.module - Implements hook_entity_property_info_alter().
File
- modules/
state_flow/ state_flow.module, line 279 - An implementation of node revision workflow for Drupal based on the State Machine system.
Code
function state_flow_entity_get_state($data, $options, $name, $type, $info) {
$state_flow = state_flow_load_state_machine($data);
return $state_flow
->get_current_state();
}