You are here

function globallink_get_submission_name in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_node.inc \globallink_get_submission_name()

Gets submission name.

Parameters

string $submission_ticket: The submission ticket.

Return value

string The name of the submission.

1 call to globallink_get_submission_name()
globallink_cancel_submission in ./globallink_node.inc
Cancels submission to GlobalLink.

File

./globallink_node.inc, line 312

Code

function globallink_get_submission_name($submission_ticket) {
  $query = db_select('globallink_core', 'tc');
  $query
    ->fields('tc');
  $query
    ->condition('submission_ticket', $submission_ticket, '=');
  $results = $query
    ->execute();
  foreach ($results as $row) {
    if ($row->submission != '') {
      return $row->submission;
    }
  }
}