You are here

function lingotek_rules_entity_change_workflow in Lingotek Translation 7.7

1 string reference to 'lingotek_rules_entity_change_workflow'
lingotek_rules_action_info in ./lingotek.rules.inc
Implements hook_rules_action_info().

File

./lingotek.rules.inc, line 126
Lingotek Module + Rules Module Integration

Code

function lingotek_rules_entity_change_workflow($wrapper, $workflow_id, $settings, $state) {
  $entity_type = $wrapper
    ->type();
  $entity_id = $wrapper
    ->getIdentifier();
  $ids = array();
  $ids[] = $entity_id;
  lingotek_entity_change_workflow($entity_type, $ids, $workflow_id);
}