function globallink_update_node_tnid in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink.inc \globallink_update_node_tnid()
- 7.6 globallink.inc \globallink_update_node_tnid()
Updates node tnid.
Parameters
int $nid: The node id.
int $tnid: The node tid.
1 call to globallink_update_node_tnid()
- globallink_update_node in ./
globallink_node.inc - Updates node.
File
- ./
globallink.inc, line 451 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_update_node_tnid($nid, $tnid) {
db_update('node')
->fields(array(
'tnid' => $tnid,
))
->condition('nid', $nid, '=')
->execute();
}