You are here

function globallink_interface_update_row_document in GlobalLink Connect for Drupal 7.6

Updates interface rows to reflect translation status.

Parameters

array $globallink_arr: Array of GlobalLink objects.

1 call to globallink_interface_update_row_document()
globallink_interface_cancel_records in globallink_interface/globallink_interface.inc
Cancels interface records.

File

globallink_interface/globallink_interface.inc, line 528

Code

function globallink_interface_update_row_document(&$globallink_arr) {
  foreach ($globallink_arr as $globallink) {
    if (!$globallink->cancelled) {
      continue;
    }
    db_update('globallink_core_interface')
      ->fields(array(
      'status' => 'Pending Translations',
      'timestamp' => REQUEST_TIME,
    ))
      ->condition('rid', $globallink->tptRowId, '=')
      ->execute();
  }
}