You are here

function globallink_beans_get_sent_tpt_rows in GlobalLink Connect for Drupal 7.6

Gets sent beans row that matches criteria.

Parameters

string $submission_ticket: The submission ticket.

string $document_ticket: The document ticket.

string $target_locale: The target locale.

Return value

Beans object that matches criteria. FALSE if none exists.

1 call to globallink_beans_get_sent_tpt_rows()
globallink_beans_receive_form in globallink_beans/globallink_beans_receive.inc
Builds form to receive a beans submission.

File

globallink_beans/globallink_beans.inc, line 852

Code

function globallink_beans_get_sent_tpt_rows($submission_ticket, $document_ticket, $target_locale) {
  $query = db_select('globallink_core_beans', 'gcb');
  $query
    ->condition('submission_ticket', $submission_ticket, '=');
  $query
    ->condition('document_ticket', $document_ticket, '=');
  $query
    ->condition('target', $target_locale, '=');
  $query
    ->fields('gcb');
  $results = $query
    ->execute();
  foreach ($results as $row) {
    return $row;
  }
  return FALSE;
}