You are here

function globallink_menu_get_sent_rows in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_menu/globallink_menu.inc \globallink_menu_get_sent_rows()

Gets sent menu rows from submission details.

Parameters

string $submission_ticket: The submission ticket.

string $document_ticket: The document ticket.

string $target_locale: The target locale.

Return value

Array of sent menu rows. FALSE if the array is empty.

1 call to globallink_menu_get_sent_rows()
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 842

Code

function globallink_menu_get_sent_rows($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;
  }
  return FALSE;
}