You are here

public static function LingotekSync::setAllTargetStatus in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::setAllTargetStatus()
  2. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::setAllTargetStatus()
  3. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::setAllTargetStatus()
3 calls to LingotekSync::setAllTargetStatus()
lingotek_entity_disassociate_form_submit in ./lingotek.bulk_grid.inc
Submit handler for the lingotek_entity_disassociate form.
lingotek_entity_save in ./lingotek.module
lingotek_get_change_workflow_form_submit in ./lingotek.module

File

lib/Drupal/lingotek/LingotekSync.php, line 73
LingotekSync

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function setAllTargetStatus($entity_type, $entity_id, $status) {
  $query = db_update('lingotek_entity_metadata')
    ->condition('entity_type', $entity_type)
    ->condition('entity_id', $entity_id)
    ->condition('entity_key', 'target_sync_status%', 'LIKE')
    ->fields(array(
    'value' => $status,
    'modified' => time(),
  ))
    ->execute();
}