You are here

function globallink_fieldable_panels_get_sent_tpt_rows in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_fieldable_panels_get_sent_tpt_rows()

Gets sent fieldable panels 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

Fieldable panels object that matches criteria. FALSE if none exists.

1 call to globallink_fieldable_panels_get_sent_tpt_rows()
globallink_fieldable_panels_receive_form in globallink_fieldable_panels/globallink_fieldable_panels_receive.inc
Builds form to receive a fieldable panels submission.

File

globallink_fieldable_panels/globallink_fieldable_panels.inc, line 485

Code

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