function globallink_entity_cancel_select_records in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_entity/globallink_entity.inc \globallink_entity_cancel_select_records()
Cancels entity records.
Parameters
array $rowids: Array of entity IDs.
string $pd4: The project director details.
1 call to globallink_entity_cancel_select_records()
- globallink_entity_active_form_submit in globallink_entity/
globallink_entity_active_submissions.inc - Handles submission of active entity form.
File
- globallink_entity/
globallink_entity.inc, line 311
Code
function globallink_entity_cancel_select_records($rowids, $pd4) {
$globallink_arr = array();
foreach ($rowids as $rid) {
$row = globallink_entity_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_entity_update_row_document($globallink_arr);
}