You are here

function lingotek_rules_entity_upload in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.rules.inc \lingotek_rules_entity_upload()
  2. 7.6 lingotek.rules.inc \lingotek_rules_entity_upload()
1 string reference to 'lingotek_rules_entity_upload'
lingotek_rules_action_info in ./lingotek.rules.inc
Implements hook_rules_action_info().

File

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

Code

function lingotek_rules_entity_upload($wrapper, $settings, $state) {
  $entity_type = $wrapper
    ->type();
  $id = $wrapper
    ->getIdentifier();
  $entity = lingotek_entity_load_single($entity_type, $id);
  lingotek_entity_changed($entity_type, $entity, $id);
  lingotek_entity_upload($entity, $entity_type);
}