function globallink_beans_update_row_document in GlobalLink Connect for Drupal 7.6
Updates beans rows to reflect translation status.
Parameters
array $globallink_arr: Array of GlobalLink objects.
1 call to globallink_beans_update_row_document()
- globallink_beans_cancel_records in globallink_beans/
globallink_beans.inc - Cancels beans records.
File
- globallink_beans/
globallink_beans.inc, line 756
Code
function globallink_beans_update_row_document(&$globallink_arr) {
foreach ($globallink_arr as $globallink) {
if ($globallink->cancelled) {
db_update('globallink_core_beans')
->fields(array(
'status' => 'Pending Translations',
'timestamp' => REQUEST_TIME,
))
->condition('rid', $globallink->tptRowId, '=')
->execute();
}
}
}