function globallink_interface_get_row_id_from_submission in GlobalLink Connect for Drupal 7.6
Gets interface row ID from submission details.
Parameters
string $submission_ticket: The submission ticket.
string $document_ticket: The document ticket.
string $target_locale: The target locale.
Return value
string The interface row ID.
1 call to globallink_interface_get_row_id_from_submission()
- globallink_interface_receive_form in globallink_interface/
globallink_interface_receive.inc - Builds form to receive an interface submission.
File
- globallink_interface/
globallink_interface.inc, line 672
Code
function globallink_interface_get_row_id_from_submission($submission_ticket, $document_ticket, $target_locale) {
$result = db_select('globallink_core_interface', 'tc')
->condition('submission_ticket', $submission_ticket, '=')
->condition('document_ticket', $document_ticket, '=')
->condition('target', $target_locale, '=')
->fields('tc')
->execute();
foreach ($result as $row) {
return $row->rid;
}
}