function globallink_beans_cancel_records in GlobalLink Connect for Drupal 7.6
Cancels beans records.
Parameters
array $rowids: Array of beans IDs.
string $pd4: The project director details.
1 call to globallink_beans_cancel_records()
- globallink_beans_active_form_submit in globallink_beans/
globallink_beans_active_submissions.inc - Handles submission of active beans form.
File
- globallink_beans/
globallink_beans.inc, line 733
Code
function globallink_beans_cancel_records($rowids, $pd4) {
$globallink_arr = array();
foreach ($rowids as $rid) {
$row = globallink_beans_get_row_by_id($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_beans_update_row_document($globallink_arr);
}