You are here

function globallink_webform_get_sent_tpt_rows_by_lid_target in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_webform/globallink_webform.inc \globallink_webform_get_sent_tpt_rows_by_lid_target()

Gets sent webform rows by LID target.

Parameters

string $lid: The webform LID.

string $target: The LID target.

Return value

array Array of sent webform rows.

File

globallink_webform/globallink_webform.inc, line 816

Code

function globallink_webform_get_sent_tpt_rows_by_lid_target($lid, $target) {
  $result = db_select('globallink_core_webform', 'tcw')
    ->fields('tcw')
    ->condition('object_id', $lid, '=')
    ->condition('target', $target, '=')
    ->condition('status', array(
    'Sent for Translations',
    'Error',
  ), 'IN')
    ->execute();
  $rows = array();
  foreach ($result as $row) {
    $rows[] = $row;
  }
  return $rows;
}