You are here

function globallink_block_get_submission_name in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_block/globallink_block.inc \globallink_block_get_submission_name()

Gets block submission name.

Parameters

string $submission_ticket: The submission ticket.

Return value

string The block submission name.

1 call to globallink_block_get_submission_name()
globallink_block_cancel_submission in globallink_block/globallink_block.inc
Cancels block submission.

File

globallink_block/globallink_block.inc, line 432

Code

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