function globallink_taxonomy_update_row_document in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_update_row_document()
Updates taxonomy rows to reflect translation status.
Parameters
array $globallink_arr: Array of GlobalLink objects.
1 call to globallink_taxonomy_update_row_document()
- globallink_taxonomy_cancel_records in globallink_taxonomy/
globallink_taxonomy.inc - Cancels taxonomy records.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 471
Code
function globallink_taxonomy_update_row_document(&$globallink_arr) {
foreach ($globallink_arr as $globallink) {
if ($globallink->cancelled) {
db_update('globallink_core_taxonomy')
->fields(array(
'status' => 'Pending Translations',
'timestamp' => REQUEST_TIME,
))
->condition('rid', $globallink->tptRowId, '=')
->execute();
}
}
}