public static function LingotekSync::setAllTargetStatus in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::setAllTargetStatus()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::setAllTargetStatus()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::setAllTargetStatus()
3 calls to LingotekSync::setAllTargetStatus()
- LingotekSync::setNodeEnabled in lib/
Drupal/ lingotek/ LingotekSync.php - lingotek_get_change_workflow_form_submit in ./
lingotek.module - lingotek_node_save in ./
lingotek.module
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 63 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function setAllTargetStatus($nid, $status) {
//lingotek_set_target_sync_status($node_id, $lingotek_locale, $node_status)
$query = db_update('lingotek')
->condition('nid', $nid)
->condition('lingokey', 'target_sync_status%', 'LIKE')
->fields(array(
'lingovalue' => $status,
))
->execute();
}