function globallink_taxonomy_get_row_id_from_submission in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_get_row_id_from_submission()
Gets taxonomy 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 taxonomy row ID. FALSE if the row doesn't exist.
1 call to globallink_taxonomy_get_row_id_from_submission()
- globallink_taxonomy_receive_form in globallink_taxonomy/
globallink_taxonomy_receive.inc - Builds form to receive a taxonomy submission.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 1029
Code
function globallink_taxonomy_get_row_id_from_submission($submission_ticket, $document_ticket, $target_locale) {
$result = db_select('globallink_core_taxonomy', '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;
}
}