You are here

function globallink_block_cancel_records in GlobalLink Connect for Drupal 7.6

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

Cancels block records.

Parameters

array $rowids: Array of block IDs.

string $pd4: The project director details.

1 call to globallink_block_cancel_records()
globallink_block_active_form_submit in globallink_block/globallink_block_active_submissions.inc
Handles submission of active block form.

File

globallink_block/globallink_block.inc, line 367

Code

function globallink_block_cancel_records($rowids, $pd4) {
  $globallink_arr = array();
  foreach ($rowids as $rid) {
    $row = globallink_get_other_row($rid, 'block');
    $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_block_update_row_document($globallink_arr);
}