function globallink_beans_get_submission_name in GlobalLink Connect for Drupal 7.6
Gets beans submission name.
Parameters
string $submission_ticket: The submission ticket.
Return value
string The beans submission name.
1 call to globallink_beans_get_submission_name()
- globallink_beans_cancel_submission in globallink_beans/
globallink_beans.inc - Cancels beans submission.
File
- globallink_beans/
globallink_beans.inc, line 636
Code
function globallink_beans_get_submission_name($submission_ticket) {
$query = db_select('globallink_core_beans', 'gcb');
$query
->fields('gcb');
$query
->condition('submission_ticket', $submission_ticket, '=');
$results = $query
->execute();
foreach ($results as $row) {
if ($row->submission != '') {
return $row->submission;
}
}
}