You are here

function globallink_block_update_row_document in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_block/globallink_block.inc \globallink_block_update_row_document()

Updates block rows to reflect translation status.

Parameters

array $globallink_arr: Array of GlobalLink objects.

1 call to globallink_block_update_row_document()
globallink_block_cancel_records in globallink_block/globallink_block.inc
Cancels block records.

File

globallink_block/globallink_block.inc, line 391

Code

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