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