function globallink_menu_get_row_id_from_submission in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_menu/globallink_menu.inc \globallink_menu_get_row_id_from_submission()
Gets menu row ID from submission details.
Parameters
string $submission_ticket: The submission ticket.
string $document_ticket: The document ticket.
string $target_locale: The target locale.
Return value
string The menu row ID. FALSE if the row doesn't exist.
1 call to globallink_menu_get_row_id_from_submission()
- globallink_menu_receive_form in globallink_menu/
globallink_menu_receive.inc - Builds form to receive a menu submission.
File
- globallink_menu/
globallink_menu.inc, line 871
Code
function globallink_menu_get_row_id_from_submission($submission_ticket, $document_ticket, $target_locale) {
$query = db_select('globallink_core_menu', 'tc');
$query
->condition('submission_ticket', $submission_ticket, '=');
$query
->condition('document_ticket', $document_ticket, '=');
$query
->condition('target', $target_locale, '=');
$query
->fields('tc');
$results = $query
->execute();
foreach ($results as $row) {
return $row->rid;
}
return FALSE;
}