function globallink_webform_get_sent_tpt_rows_by_lid_target in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 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 712
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;
}