You are here

function globallink_webform_get_sent_tpt_rows_by_lid_and_target in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_webform/globallink_webform.inc \globallink_webform_get_sent_tpt_rows_by_lid_and_target()

Gets sent webform rows by LID.

Parameters

string $lid: The webform LID.

Return value

array Array of webform rows.

1 call to globallink_webform_get_sent_tpt_rows_by_lid_and_target()
globallink_webform_send_for_translations in globallink_webform/globallink_webform.inc
Sends webforms for translation.

File

globallink_webform/globallink_webform.inc, line 470

Code

function globallink_webform_get_sent_tpt_rows_by_lid_and_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();
  foreach ($result as $row) {
    return $row;
  }
  return NULL;
}