function globallink_block_get_row_id_from_submission in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_block/globallink_block.inc \globallink_block_get_row_id_from_submission()
Gets block 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 block row ID.
1 call to globallink_block_get_row_id_from_submission()
- globallink_block_receive_form in globallink_block/
globallink_block_receive.inc - Builds form to receive a block submission.
File
- globallink_block/
globallink_block.inc, line 732
Code
function globallink_block_get_row_id_from_submission($submission_ticket, $document_ticket, $target_locale) {
$result = db_select('globallink_core_block', '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;
}
}