You are here

function globallink_update_row_document in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_node.inc \globallink_update_row_document()

Updates a row document.

Parameters

array $globallink_arr: Array of GlobalLink objects.

1 call to globallink_update_row_document()
globallink_cancel_select_records in ./globallink_node.inc
Cancels select records.

File

./globallink_node.inc, line 331

Code

function globallink_update_row_document(&$globallink_arr) {
  foreach ($globallink_arr as $globallink) {
    if ($globallink->cancelled) {
      db_update('globallink_core')
        ->fields(array(
        'status' => 'Cancelled',
        'timestamp' => REQUEST_TIME,
        'changed' => 1,
      ))
        ->condition('rid', $globallink->tptRowId, '=')
        ->execute();
    }
  }
}