You are here

function globallink_interface_get_submission_name in GlobalLink Connect for Drupal 7.6

Gets interface submission name.

Parameters

string $submission_ticket: The submission ticket.

Return value

string The interface submission name.

1 call to globallink_interface_get_submission_name()
globallink_interface_cancel_submission in globallink_interface/globallink_interface.inc
Cancels interface submission.

File

globallink_interface/globallink_interface.inc, line 571

Code

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