function globallink_update_node_tnid in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 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_import_node in ./
globallink_node.inc - Updates node.
File
- ./
globallink.inc, line 408 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_update_node_tnid($nid, $tnid) {
db_update(GLOBALLINK_ENTITY_TYPE_NODE)
->fields(array(
'tnid' => $tnid,
))
->condition('nid', $nid, '=')
->execute();
}