You are here

function lingotek_rules_entity_download in Lingotek Translation 7.6

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

File

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

Code

function lingotek_rules_entity_download($wrapper, $languages, $settings, $state) {
  $entity_type = $wrapper
    ->type();
  $id = $wrapper
    ->getIdentifier();
  $entity = $wrapper
    ->value();
  foreach ($languages as $lingotek_locale) {
    lingotek_entity_download($entity, $entity_type, $lingotek_locale);
  }
}