function state_flow_entity_get_state in State Machine 7.3
Same name and namespace in other branches
- 7 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.
See also
entity_api module.
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 410 - 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) {
$machine = state_flow_entity_load_state_machine($data, 'node');
return $machine
->get_current_state();
}