function globallink_taxonomy_get_submission_name in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_get_submission_name()
Gets taxonomy submission name.
Parameters
string $submission_ticket: The submission ticket.
Return value
string The taxonomy submission name.
1 call to globallink_taxonomy_get_submission_name()
- globallink_taxonomy_cancel_submission in globallink_taxonomy/
globallink_taxonomy.inc - Cancels taxonomy submission.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 513
Code
function globallink_taxonomy_get_submission_name($submission_ticket) {
$query = db_select('globallink_core_taxonomy', 'tc');
$query
->fields('tc');
$query
->condition('submission_ticket', $submission_ticket, '=');
$results = $query
->execute();
foreach ($results as $row) {
if ($row->submission != '') {
return $row->submission;
}
}
}