You are here

function globallink_cancel_select_records in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_node.inc \globallink_cancel_select_records()

Cancels select records.

Parameters

array $rowids: Array of row ids to cancel select records for.

string $pd4: The project director details.

1 call to globallink_cancel_select_records()
globallink_dashboard_active_submit in ./globallink_active_submissions.inc
Handles submission of active GlobalLink form.

File

./globallink_node.inc, line 267

Code

function globallink_cancel_select_records($rowids, $pd4) {
  $globallink_arr = array();
  foreach ($rowids as $rid) {
    $row = globallink_get_row($rid);
    $globallink = new GlobalLink();
    $globallink->tptRowId = $row->rid;
    $globallink->targetLocale = $row->target;
    $globallink->documentTicket = $row->document_ticket;
    $globallink->submissionTicket = $row->submission_ticket;
    $globallink_arr[$rid] = $globallink;
  }
  globallink_cancel_select_documents($pd4, $globallink_arr);
  globallink_update_row_document($globallink_arr);
}