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