You are here

function globallink_webform_update_row_document in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_webform/globallink_webform.inc \globallink_webform_update_row_document()

Updates webform rows to reflect translation status.

Parameters

array $globallink_arr: Array of GlobalLink objects.

1 call to globallink_webform_update_row_document()
globallink_webform_cancel_records in globallink_webform/globallink_webform.inc
Cancels webform records.

File

globallink_webform/globallink_webform.inc, line 569

Code

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